@@ -38,10 +38,10 @@ public abstract class AbstractTychoIntegrationTest {
38
38
@ Rule
39
39
public TestName name = new TestName ();
40
40
41
- protected File getBasedir (String root , String test ) throws IOException {
42
- File src = new File ("projects" , root ).getAbsoluteFile ();
41
+ protected File getBasedir (String test ) throws IOException {
42
+ File src = new File ("projects" , test ).getAbsoluteFile ();
43
43
File dst = new File ("target/projects" ,
44
- getClass ().getSimpleName () + "/" + name .getMethodName () + "/" + root .replace ("../" , "./" ))
44
+ getClass ().getSimpleName () + "/" + name .getMethodName () + "/" + test .replace ("../" , "./" ))
45
45
.getAbsoluteFile ();
46
46
47
47
if (dst .isDirectory ()) {
@@ -54,37 +54,23 @@ protected File getBasedir(String root, String test) throws IOException {
54
54
55
55
FileUtils .copyDirectoryStructure (src , dst );
56
56
57
- return test != null ? new File ( dst , test ) : dst ;
57
+ return dst ;
58
58
}
59
59
60
60
protected Verifier getVerifier (String test , boolean setTargetPlatform ) throws Exception {
61
- return getVerifier (test , null , setTargetPlatform );
62
- }
63
-
64
- protected Verifier getVerifier (String root , String test , boolean setTargetPlatform ) throws Exception {
65
- return getVerifier (root , test , setTargetPlatform , getSettings ());
61
+ return getVerifier (test , setTargetPlatform , getSettings ());
66
62
}
67
63
68
64
protected Verifier getVerifier (String test , boolean setTargetPlatform , boolean ignoreLocalArtifacts )
69
65
throws Exception {
70
- return getVerifier (test , null , setTargetPlatform , ignoreLocalArtifacts );
71
- }
72
-
73
- protected Verifier getVerifier (String root , String test , boolean setTargetPlatform , boolean ignoreLocalArtifacts )
74
- throws Exception {
75
- return getVerifier (root , test , setTargetPlatform , getSettings (), ignoreLocalArtifacts );
66
+ return getVerifier (test , setTargetPlatform , getSettings (), ignoreLocalArtifacts );
76
67
}
77
68
78
69
protected Verifier getVerifier (String test , boolean setTargetPlatform , File userSettings ) throws Exception {
79
- return getVerifier (test , null , setTargetPlatform , userSettings );
80
- }
81
-
82
- protected Verifier getVerifier (String root , String test , boolean setTargetPlatform , File userSettings )
83
- throws Exception {
84
- return getVerifier (root , test , setTargetPlatform , userSettings , true );
70
+ return getVerifier (test , setTargetPlatform , userSettings , true );
85
71
}
86
72
87
- protected Verifier getVerifier (String root , String test , boolean setTargetPlatform , File userSettings ,
73
+ protected Verifier getVerifier (String test , boolean setTargetPlatform , File userSettings ,
88
74
boolean ignoreLocalArtifacts ) throws Exception {
89
75
//Test JVM can be started in debug mode by passing the following property to the maven run:
90
76
//-Dtycho.mvnDebug -> will start with port 8000
@@ -94,7 +80,7 @@ protected Verifier getVerifier(String root, String test, boolean setTargetPlatfo
94
80
// oddly enough, Verifier uses this system property to locate maven install
95
81
System .setProperty ("maven.home" , getMavenHome ());
96
82
97
- File testDir = getBasedir (root , test );
83
+ File testDir = getBasedir (test );
98
84
99
85
Verifier verifier = new Verifier (testDir .getAbsolutePath ());
100
86
verifier .setForkJvm (isForked ());
@@ -162,11 +148,11 @@ protected boolean isForked() {
162
148
}
163
149
164
150
protected Verifier getVerifier (String test ) throws Exception {
165
- return getVerifier (test , null );
151
+ return getVerifier (test , true );
166
152
}
167
153
168
- protected Verifier getVerifier ( String root , String test ) throws Exception {
169
- return getVerifier ( root , test , true );
154
+ protected static void executeOnlyProject ( Verifier verifier , String projectFolder ) {
155
+ verifier . addCliOption ( "-pl " + projectFolder );
170
156
}
171
157
172
158
protected String getTargetPlatform () {
0 commit comments