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
23
24
25
26
27 public class Junit4VersionsIT
28 extends SurefireVerifierTestClass
29 {
30
31 public Junit4VersionsIT()
32 {
33 super( "/junit4" );
34 }
35
36 public void test40()
37 throws Exception
38 {
39 runJUnitTest( "4.0" );
40 }
41
42 public void test41()
43 throws Exception
44 {
45 runJUnitTest( "4.1" );
46 }
47
48 public void test42()
49 throws Exception
50 {
51 runJUnitTest( "4.2" );
52 }
53
54 public void test43()
55 throws Exception
56 {
57 runJUnitTest( "4.3" );
58 }
59
60 public void test431()
61 throws Exception
62 {
63 runJUnitTest( "4.3.1" );
64 }
65
66 public void test44()
67 throws Exception
68 {
69 runJUnitTest( "4.4" );
70 }
71
72 public void test45()
73 throws Exception
74 {
75 runJUnitTest( "4.5" );
76 }
77
78 public void test46()
79 throws Exception
80 {
81 runJUnitTest( "4.6" );
82 }
83
84 public void test47()
85 throws Exception
86 {
87 runJUnitTest( "4.7" );
88 }
89
90
91 public void runJUnitTest( String version )
92 throws Exception
93 {
94 addGoal( "-DjunitVersion=" + version );
95 executeTest();
96 verifyErrorFreeLog();
97 assertTestSuiteResults( 1, 0, 0, 0 );
98 }
99 }