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.it.Verifier;
23 import org.apache.maven.it.util.ResourceExtractor;
24 import org.apache.maven.surefire.its.misc.HelperAssertions;
25
26 import java.io.File;
27 import java.util.List;
28
29
30
31
32
33
34
35
36 public class CheckTestNgVersionsIT
37 extends AbstractSurefireIntegrationTestClass
38 {
39
40 public void test47()
41 throws Exception
42 {
43 runTestNgTest( "4.7" );
44 }
45
46
47
48
49 public void XXXtest50()
50 throws Exception
51 {
52 runTestNgTest( "5.0" );
53 }
54
55 public void XXXtest501()
56 throws Exception
57 {
58 runTestNgTest( "5.0.1" );
59 }
60
61 public void test502()
62 throws Exception
63 {
64 runTestNgTest( "5.0.2" );
65 }
66
67 public void test51()
68 throws Exception
69 {
70 runTestNgTest( "5.1" );
71 }
72
73 public void test55()
74 throws Exception
75 {
76 runTestNgTest( "5.5" );
77 }
78
79 public void test56()
80 throws Exception
81 {
82 runTestNgTest( "5.6" );
83 }
84
85 public void test57()
86 throws Exception
87 {
88 runTestNgTest( "5.7" );
89 }
90
91 public void test58()
92 throws Exception
93 {
94 runTestNgTest( "5.8" );
95 }
96
97 public void test59()
98 throws Exception
99 {
100 runTestNgTest( "5.9" );
101 }
102
103 public void test510()
104 throws Exception
105 {
106 runTestNgTest( "5.10" );
107 }
108
109 public void test511()
110 throws Exception
111 {
112 runTestNgTest( "5.11" );
113 }
114
115 public void test512()
116 throws Exception
117 {
118 runTestNgTest( "5.12.1" );
119 }
120
121 public void test513()
122 throws Exception
123 {
124 runTestNgTest( "5.13" );
125 }
126
127 public void test5131()
128 throws Exception
129 {
130 runTestNgTest( "5.13.1" );
131 }
132
133 public void test514()
134 throws Exception
135 {
136 runTestNgTest( "5.14" );
137 }
138
139 public void test5141()
140 throws Exception
141 {
142 runTestNgTest( "5.14.1" );
143 }
144
145 public void test5142()
146 throws Exception
147 {
148 runTestNgTest( "5.14.2" );
149 }
150
151 public void test60()
152 throws Exception
153 {
154 runTestNgTest( "6.0" );
155 }
156
157 public void runTestNgTest( String version )
158 throws Exception
159 {
160 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/testng-simple" );
161
162 Verifier verifier = new Verifier( testDir.getAbsolutePath() );
163 List<String> arguments = this.getInitialGoals( version );
164 arguments.add( "test" );
165
166 executeGoals( verifier, arguments );
167 verifier.verifyErrorFreeLog();
168 verifier.resetStreams();
169
170 IntegrationTestSuiteResults suite = HelperAssertions.parseTestResults( testDir );
171 HelperAssertions.assertTestSuiteResults( 1, 0, 0, 0, suite );
172 }
173 }