1 package org.apache.maven.surefire.its;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
23 import org.junit.Test;
24
25
26
27
28
29
30 public class TestSingleMethodIT
31 extends SurefireJUnit4IntegrationTestCase
32 {
33 public void singleMethod( String projectName )
34 throws Exception
35 {
36 unpack( projectName ).executeTest().verifyErrorFreeLog().assertTestSuiteResults( 1, 0, 0, 0 );
37 }
38
39 @Test
40 public void testJunit44()
41 throws Exception
42 {
43 singleMethod( "junit44-single-method" );
44 }
45
46 @Test
47 public void testJunit48()
48 throws Exception
49 {
50 singleMethod( "junit48-single-method" );
51 }
52
53 @Test
54 public void testJunit48parallel()
55 throws Exception
56 {
57 unpack( "junit48-single-method" )
58 .executeTest()
59 .verifyErrorFreeLog()
60 .assertTestSuiteResults( 1, 0, 0, 0 );
61 }
62
63 @Test
64 public void testTestNg()
65 throws Exception
66 {
67 singleMethod( "testng-single-method" );
68 }
69
70 @Test
71 public void testTestNg5149()
72 throws Exception
73 {
74 singleMethod( "/testng-single-method-5-14-9" );
75 }
76
77 }