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" ).parallelClasses().executeTest().verifyErrorFreeLog().assertTestSuiteResults(
58 1, 0, 0, 0 );
59 }
60
61 @Test
62 public void testTestNg()
63 throws Exception
64 {
65 singleMethod( "testng-single-method" );
66 }
67
68 @Test
69 public void testTestNg5149()
70 throws Exception
71 {
72 singleMethod( "/testng-single-method-5-14-9" );
73 }
74
75 }