configure integration test

This commit is contained in:
DOHA 2016-10-18 20:20:13 +02:00
parent 2bea888ce1
commit 66dfb6fd37
3 changed files with 22 additions and 3 deletions

View File

@ -12,6 +12,7 @@
<spring.version>4.2.5.RELEASE</spring.version>
<spring-data-redis>1.6.2.RELEASE</spring-data-redis>
<nosqlunit.version>0.8.0</nosqlunit.version>
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
</properties>
<dependencies>
@ -72,5 +73,23 @@
<version>${nosqlunit.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
</excludes>
<systemPropertyVariables>
<!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -15,7 +15,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = RedisConfig.class)
public class RedisMessageListenerTest {
public class RedisMessageListenerIntegrationTest {
@Autowired
private RedisMessagePublisher redisMessagePublisher;

View File

@ -15,7 +15,7 @@ import static org.junit.Assert.assertNull;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = RedisConfig.class)
public class StudentRepositoryTest {
public class StudentRepositoryIntegrationTest {
@Autowired
private StudentRepository studentRepository;