configure integration test
This commit is contained in:
parent
1c775ef0ef
commit
1dac21c3a6
|
@ -194,7 +194,7 @@
|
|||
<version>${maven-surefire-plugin.version}</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<!-- <exclude>**/*ProductionTest.java</exclude> -->
|
||||
<exclude>**/*IntegrationTest.java</exclude>
|
||||
</excludes>
|
||||
<systemPropertyVariables>
|
||||
<!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
|
||||
|
@ -202,27 +202,6 @@
|
|||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.cargo</groupId>
|
||||
<artifactId>cargo-maven2-plugin</artifactId>
|
||||
<version>${cargo-maven2-plugin.version}</version>
|
||||
<configuration>
|
||||
<wait>true</wait>
|
||||
<container>
|
||||
<containerId>jetty8x</containerId>
|
||||
<type>embedded</type>
|
||||
<systemProperties>
|
||||
<!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
|
||||
</systemProperties>
|
||||
</container>
|
||||
<configuration>
|
||||
<properties>
|
||||
<cargo.servlet.port>8082</cargo.servlet.port>
|
||||
</properties>
|
||||
</configuration>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
|
|
@ -18,7 +18,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { Cause5NonTransientConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class CannotGetJdbcConnectionExceptionTest {
|
||||
public class CannotGetJdbcConnectionExceptionIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private DataSource restDataSource;
|
|
@ -17,7 +17,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { Cause1NonTransientConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class DataIntegrityExceptionTest {
|
||||
public class DataIntegrityExceptionIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private IFooService fooService;
|
|
@ -17,7 +17,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { Cause1NonTransientConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class DataRetrievalExceptionTest {
|
||||
public class DataRetrievalExceptionIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private DataSource restDataSource;
|
|
@ -13,7 +13,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { Cause4NonTransientConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class DataSourceLookupExceptionTest {
|
||||
public class DataSourceLookupExceptionIntegrationTest {
|
||||
|
||||
@Test(expected = DataSourceLookupFailureException.class)
|
||||
public void whenLookupNonExistentDataSource_thenDataSourceLookupFailureException() {
|
|
@ -16,7 +16,7 @@ import javax.sql.DataSource;
|
|||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { Cause1NonTransientConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class InvalidResourceUsageExceptionTest {
|
||||
public class InvalidResourceUsageExceptionIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private IFooService fooService;
|
Loading…
Reference in New Issue