configure integration test
This commit is contained in:
parent
2bea888ce1
commit
66dfb6fd37
|
@ -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>
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue