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.version>4.2.5.RELEASE</spring.version>
|
||||||
<spring-data-redis>1.6.2.RELEASE</spring-data-redis>
|
<spring-data-redis>1.6.2.RELEASE</spring-data-redis>
|
||||||
<nosqlunit.version>0.8.0</nosqlunit.version>
|
<nosqlunit.version>0.8.0</nosqlunit.version>
|
||||||
|
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -72,5 +73,23 @@
|
||||||
<version>${nosqlunit.version}</version>
|
<version>${nosqlunit.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</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>
|
</project>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = RedisConfig.class)
|
@ContextConfiguration(classes = RedisConfig.class)
|
||||||
public class RedisMessageListenerTest {
|
public class RedisMessageListenerIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RedisMessagePublisher redisMessagePublisher;
|
private RedisMessagePublisher redisMessagePublisher;
|
|
@ -15,7 +15,7 @@ import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = RedisConfig.class)
|
@ContextConfiguration(classes = RedisConfig.class)
|
||||||
public class StudentRepositoryTest {
|
public class StudentRepositoryIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private StudentRepository studentRepository;
|
private StudentRepository studentRepository;
|
Loading…
Reference in New Issue