
public interface PostgreSQLDriverBasedFailures
@Category(PostgreSQLDriverBasedFailures.class) als annotatie op een
test klasse en import org.junit.experimental.categories.Category;.
Vervolgens de maven surefire en/of failsafe plugin configureren met een
<excludedGroups> element, bijvoorbeeld:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
</dependency>
</dependencies>
<configuration>
<includes>
<include>*.class
</include>
</includes>
<excludedGroups>nl.b3p.brmo.test.util.database.PostgreSQLDriverBasedFailures</excludedGroups>
</configuration>
</plugin>
zie:
Unit
and Integration Tests With Maven and JUnit Categories.experimental.categories.CategoryCopyright © 2016–2019 B3Partners B.V.. All rights reserved.