add integration test profile
This commit is contained in:
parent
5c7d521402
commit
c9b956e9b9
|
@ -66,9 +66,10 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*IntegrationTest.java</exclude>
|
||||
<exclude>**/*LiveTest.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
@ -85,6 +86,41 @@
|
|||
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>integration</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*LiveTest.java</exclude>
|
||||
</excludes>
|
||||
<includes>
|
||||
<include>**/*IntegrationTest.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<test.mime>json</test.mime>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<properties>
|
||||
<maven-war-plugin.version>2.6</maven-war-plugin.version>
|
||||
</properties>
|
||||
|
|
|
@ -16,7 +16,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestAutowiredType.class)
|
||||
public class FieldAutowiredTest {
|
||||
public class FieldAutowiredIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private ArbitraryDependency fieldDependency;
|
|
@ -16,7 +16,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestAutowiredName.class)
|
||||
public class FieldAutowiredNameTest {
|
||||
public class FieldAutowiredNameIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private ArbitraryDependency autowiredFieldDependency;
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestAutowiredQualifier.class)
|
||||
public class FieldQualifierAutowiredTest {
|
||||
public class FieldQualifierAutowiredIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("autowiredFieldDependency")
|
|
@ -18,7 +18,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestInjectName.class)
|
||||
public class FieldByNameInjectTest {
|
||||
public class FieldByNameInjectIntegrationTest {
|
||||
|
||||
@Inject
|
||||
@Named("yetAnotherFieldInjectDependency")
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestInjectType.class)
|
||||
public class FieldInjectTest {
|
||||
public class FieldInjectIntegrationTest {
|
||||
|
||||
@Inject
|
||||
private ArbitraryDependency fieldInjectDependency;
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestInjectQualifier.class)
|
||||
public class FieldQualifierInjectTest {
|
||||
public class FieldQualifierInjectIntegrationTest {
|
||||
|
||||
@Inject
|
||||
@Qualifier("defaultFile")
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceNameType.class)
|
||||
public class FieldResourceInjectionTest {
|
||||
public class FieldResourceInjectionIntegrationTest {
|
||||
|
||||
@Resource(name = "namedFile")
|
||||
private File defaultFile;
|
|
@ -18,7 +18,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceQualifier.class)
|
||||
public class MethodByQualifierResourceTest {
|
||||
public class MethodByQualifierResourceIntegrationTest {
|
||||
|
||||
private File arbDependency;
|
||||
private File anotherArbDependency;
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceNameType.class)
|
||||
public class MethodByTypeResourceTest {
|
||||
public class MethodByTypeResourceIntegrationTest {
|
||||
|
||||
private File defaultFile;
|
||||
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceNameType.class)
|
||||
public class MethodResourceInjectionTest {
|
||||
public class MethodResourceInjectionIntegrationTest {
|
||||
|
||||
private File defaultFile;
|
||||
|
|
@ -16,7 +16,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceNameType.class)
|
||||
public class NamedResourceTest {
|
||||
public class NamedResourceIntegrationTest {
|
||||
|
||||
@Resource(name = "namedFile")
|
||||
private File testFile;
|
|
@ -18,7 +18,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceQualifier.class)
|
||||
public class QualifierResourceInjectionTest {
|
||||
public class QualifierResourceInjectionIntegrationTest {
|
||||
|
||||
@Resource
|
||||
@Qualifier("defaultFile")
|
|
@ -16,7 +16,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(loader = AnnotationConfigContextLoader.class,
|
||||
classes = ApplicationContextTestResourceNameType.class)
|
||||
public class SetterResourceInjectionTest {
|
||||
public class SetterResourceInjectionIntegrationTest {
|
||||
|
||||
private File defaultFile;
|
||||
|
Loading…
Reference in New Issue