1 package org.apache.maven.surefire.its.jiras;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import org.apache.maven.surefire.its.Not2xCompatible;
22 import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
23
24 import org.junit.Test;
25 import org.junit.experimental.categories.Category;
26
27 @Category( Not2xCompatible.class )
28 public class Surefire806SpecifiedTestControlsIT
29 extends SurefireJUnit4IntegrationTestCase
30 {
31
32 @Test
33 public void singleTestInOneExecutionOfMultiExecutionProject()
34 {
35 unpack( "/surefire-806-specifiedTests-multi" ).setTestToRun( "FirstTest" ).failIfNoSpecifiedTests(
36 false ).executeTest().verifyErrorFree( 1 );
37 }
38
39 @Test
40 public void twoSpecifiedTestExecutionsInCorrectExecutionBlocks()
41 {
42 unpack( "/surefire-806-specifiedTests-multi" ).setTestToRun(
43 "FirstTest,SecondTest" ).executeTest().verifyErrorFree( 2 );
44 }
45
46 @Test
47 public void singleTestInSingleExecutionProject()
48 {
49 unpack( "/surefire-806-specifiedTests-single" ).setTestToRun( "ThirdTest" ).failIfNoSpecifiedTests(
50 false ).executeTest().verifyErrorFree( 1 );
51 }
52 }