File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
logback-classic/src/test/java/ch/qos/logback/classic/util Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 8
8
import static org .junit .jupiter .api .Assertions .assertTrue ;
9
9
public class EnvUtilTest {
10
10
11
+ // Beware: ----------------------------------------
12
+ // Beware: needs to be updated upon version change
13
+ // Beware: ----------------------------------------
14
+ static final String EXPECTED_VERSION = "1.5" ;
15
+
11
16
12
17
@ BeforeEach
13
18
public void setUp () throws Exception {
@@ -21,7 +26,7 @@ public void setUp() throws Exception {
21
26
public void versionTest () {
22
27
String versionStr = EnvUtil .logbackVersion ();
23
28
assertNotNull (versionStr );
24
- assertTrue (versionStr .startsWith ("1.4" ));
29
+ assertTrue (versionStr .startsWith (EXPECTED_VERSION ));
25
30
}
26
31
27
32
Original file line number Diff line number Diff line change 25
25
<groupId >ch.qos.logback</groupId >
26
26
<artifactId >logback-classic</artifactId >
27
27
</dependency >
28
- <dependency >
29
- <groupId >ch.qos.logback</groupId >
30
- <artifactId >logback-access</artifactId >
31
- </dependency >
32
28
<dependency >
33
29
<groupId >org.slf4j</groupId >
34
30
<artifactId >slf4j-ext</artifactId >
You can’t perform that action at this time.
0 commit comments