Skip to content

Commit 4bc3153

Browse files
committed
Config changes to log4j and a minor code change
1 parent 532d4ad commit 4bc3153

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎rest-assured-tutorial/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<artifactId>maven-compiler-plugin</artifactId>
1313
<version>3.3</version>
1414
<configuration>
15-
<source>7</source>
16-
<target>7</target>
15+
<source>8</source>
16+
<target>8</target>
1717
</configuration>
1818
</plugin>
1919
</plugins>

‎rest-assured-tutorial/src/test/java/com/baeldung/restassured/RestAssuredTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void after() throws Exception {
9999
}
100100

101101
private static String getEventJson() {
102-
return Util.inputStreamToString(new RestAssuredTest().getClass()
102+
return Util.inputStreamToString(RestAssuredTest.class
103103
.getResourceAsStream("/event_0.json"));
104104
}
105105

‎rest-assured-tutorial/src/test/resources/log4j.properties‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
## Logger configure file for myproject
2-
log.dir=C:/ProgramData/radixbase/
1+
## Logger configure
32
datestamp=yyyy-MM-dd HH:mm:ss
43
log4j.rootLogger=TRACE, file, console
54

65
log4j.appender.file=org.apache.log4j.RollingFileAppender
76
log4j.appender.file.maxFileSize=1GB
87
log4j.appender.file.maxBackupIndex=5
9-
log4j.appender.file.File=log/mydebug.log
8+
log4j.appender.file.File=log/rest-assured.log
109
log4j.appender.file.threshold=TRACE
1110
log4j.appender.file.layout=org.apache.log4j.PatternLayout
1211
log4j.appender.file.layout.ConversionPattern=%d{${datestamp}} %5p: [%c] - %m%n

0 commit comments

Comments
 (0)