Skip to content

Commit

Permalink
Rename logback.xml to logback-test.xml to make clear it is for tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sleberknight authored Jul 3, 2023
1 parent ea2ea8e commit 1114662
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/kiwiproject/io/KiwiPathsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class KiwiPathsTest {

@Test
void testPathFromFileName_WhenValidRelativeFileName() {
var path = KiwiPaths.pathFromResourceName("logback.xml");
var path = KiwiPaths.pathFromResourceName("logback-test.xml");

assertThat(path.toFile()).exists();
assertThat(path.toString()).endsWith("/logback.xml");
assertThat(path.toString()).endsWith("/logback-test.xml");
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/kiwiproject/jsch/JSchSlf4jLoggerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* <em>IMPORTANT:</em>
* In order to setup SLF4J loggers at the appropriate level, the {@code src/test/resources/logback.xml} contains five
* In order to setup SLF4J loggers at the appropriate level, the {@code src/test/resources/logback-test.xml} contains five
* loggers for the five different SLF4J log levels (TRACE, DEBUG, INFO, WARN, ERROR).
* <p>
* The name format is: {@code jsch-logger-<level>} -- for example the DEBUG level logger is named
Expand Down Expand Up @@ -154,7 +154,7 @@ void shouldLog_Jsch_WARN_Level_At_SLF4J_WARN_Level() {
.doesNotContain("test INFO message");
}

// See logback.xml in src/test which configures org.kiwiproject.jsch.JSchSlf4jLogger at WARN level
// See logback-test.xml in src/test which configures org.kiwiproject.jsch.JSchSlf4jLogger at WARN level
@Test
void shouldLog_AtLogbackConfiguredLevel_WhenConstructUsingDefaultConstructor() {
logger = new JSchSlf4jLogger();
Expand Down
File renamed without changes.

0 comments on commit 1114662

Please sign in to comment.