<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties>
<property>
<name>listener</name>
<value>org.spf4j.test.log.junit4.Spf4jTestLogRunListener</value>
</property>
</properties>
</configuration>
</plugin>
you can also use @RunWith(Spf4jTestLogJUnitRunner.class) but it is not as convenient.See: Description
Class | Description |
---|---|
ExpectLog.Util |
Annotation Type | Description |
---|---|
CollectLogs |
Annotation to specify custom log collection for a particular unit test.
|
ExpectLog |
Annotation to assert log behavior.
|
ExpectLogs |
Log expectation annotation for multiple logs.
|
PrintLogs |
Annotation to specify custom log printout for a particular unit test.
|
PrintLogsConfigs |
Support for multiple Printl log configurations
|
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties>
<property>
<name>listener</name>
<value>org.spf4j.test.log.junit4.Spf4jTestLogRunListener</value>
</property>
</properties>
</configuration>
</plugin>
you can also use @RunWith(Spf4jTestLogJUnitRunner.class) but it is not as convenient.Copyright © 2021 SPF4J. All rights reserved.