@@ -67,7 +67,7 @@ public void testCompilerBasic()
67
67
68
68
compileMojo .execute ();
69
69
70
- File testClass = new File ( compileMojo .getOutputDirectory (), "TestCompile0.class" );
70
+ File testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestCompile0.class" );
71
71
72
72
assertTrue ( testClass .exists () );
73
73
@@ -80,7 +80,7 @@ public void testCompilerBasic()
80
80
assertNotNull ( "MCOMPILER-94: artifact file should only be null if there is nothing to compile" ,
81
81
projectArtifact .getFile () );
82
82
83
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestCompile0Test.class" );
83
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestCompile0Test.class" );
84
84
85
85
verify ( log ).warn ( startsWith ( "No explicit value set for target or release!" ) );
86
86
@@ -150,13 +150,13 @@ public void testCompilerIncludesExcludes()
150
150
151
151
compileMojo .execute ();
152
152
153
- File testClass = new File ( compileMojo .getOutputDirectory (), "TestCompile2.class" );
153
+ File testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestCompile2.class" );
154
154
assertFalse ( testClass .exists () );
155
155
156
- testClass = new File ( compileMojo .getOutputDirectory (), "TestCompile3.class" );
156
+ testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestCompile3.class" );
157
157
assertFalse ( testClass .exists () );
158
158
159
- testClass = new File ( compileMojo .getOutputDirectory (), "TestCompile4.class" );
159
+ testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestCompile4.class" );
160
160
assertTrue ( testClass .exists () );
161
161
162
162
TestCompilerMojo testCompileMojo = getTestCompilerMojo ( compileMojo ,
@@ -167,13 +167,13 @@ public void testCompilerIncludesExcludes()
167
167
168
168
testCompileMojo .execute ();
169
169
170
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestCompile2TestCase.class" );
170
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestCompile2TestCase.class" );
171
171
assertFalse ( testClass .exists () );
172
172
173
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestCompile3TestCase.class" );
173
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestCompile3TestCase.class" );
174
174
assertFalse ( testClass .exists () );
175
175
176
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestCompile4TestCase.class" );
176
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestCompile4TestCase.class" );
177
177
assertTrue ( testClass .exists () );
178
178
}
179
179
@@ -192,7 +192,7 @@ public void testCompilerFork()
192
192
193
193
compileMojo .execute ();
194
194
195
- File testClass = new File ( compileMojo .getOutputDirectory (), "TestCompile1.class" );
195
+ File testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestCompile1.class" );
196
196
assertTrue ( testClass .exists () );
197
197
198
198
TestCompilerMojo testCompileMojo =
@@ -203,7 +203,7 @@ public void testCompilerFork()
203
203
204
204
testCompileMojo .execute ();
205
205
206
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestCompile1TestCase.class" );
206
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestCompile1TestCase.class" );
207
207
assertTrue ( testClass .exists () );
208
208
}
209
209
@@ -345,13 +345,13 @@ public void testCompileSkipMain()
345
345
CompilerMojo compileMojo = getCompilerMojo ( "target/test-classes/unit/compiler-skip-main/plugin-config.xml" );
346
346
setVariableValueToObject ( compileMojo , "skipMain" , true );
347
347
compileMojo .execute ();
348
- File testClass = new File ( compileMojo .getOutputDirectory (), "TestSkipMainCompile0.class" );
348
+ File testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestSkipMainCompile0.class" );
349
349
assertFalse ( testClass .exists () );
350
350
351
351
TestCompilerMojo testCompileMojo =
352
352
getTestCompilerMojo ( compileMojo , "target/test-classes/unit/compiler-skip-main/plugin-config.xml" );
353
353
testCompileMojo .execute ();
354
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestSkipMainCompile0Test.class" );
354
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestSkipMainCompile0Test.class" );
355
355
assertTrue ( testClass .exists () );
356
356
}
357
357
@@ -365,14 +365,14 @@ public void testCompileSkipTest()
365
365
{
366
366
CompilerMojo compileMojo = getCompilerMojo ( "target/test-classes/unit/compiler-skip-test/plugin-config.xml" );
367
367
compileMojo .execute ();
368
- File testClass = new File ( compileMojo .getOutputDirectory (), "TestSkipTestCompile0.class" );
368
+ File testClass = new File ( compileMojo .getOutputDirectory (), "foo/ TestSkipTestCompile0.class" );
369
369
assertTrue ( testClass .exists () );
370
370
371
371
TestCompilerMojo testCompileMojo =
372
372
getTestCompilerMojo ( compileMojo , "target/test-classes/unit/compiler-skip-test/plugin-config.xml" );
373
373
setVariableValueToObject ( testCompileMojo , "skip" , true );
374
374
testCompileMojo .execute ();
375
- testClass = new File ( testCompileMojo .getOutputDirectory (), "TestSkipTestCompile0Test.class" );
375
+ testClass = new File ( testCompileMojo .getOutputDirectory (), "foo/ TestSkipTestCompile0Test.class" );
376
376
assertFalse ( testClass .exists () );
377
377
}
378
378
0 commit comments