junit: testdata for the same test class name in different modules

This commit is contained in:
Anna Kozlova
2019-04-17 14:21:09 +02:00
parent 27ef431d6a
commit fb91f8aac3
3 changed files with 26 additions and 0 deletions
@@ -67,6 +67,10 @@ public class JUnitForkIntegrationTest extends AbstractTestFrameworkCompilingInte
public void testForkPerModuleWithDependency() throws ExecutionException {
doTestForkPerModule(createRunPackageConfiguration("junit4"));
}
public void testForkPerModuleWithDependencyAndSameClasses() throws ExecutionException {
doTestForkPerModule(createRunPackageConfiguration("sameClass"));
}
public void testForkPatternPerModuleWithDependency() throws ExecutionException {
JUnitConfiguration configuration = new JUnitConfiguration("pattern", getProject());
@@ -0,0 +1,11 @@
package sameClass;
import org.junit.Test;
public class MySameClass {
@Test
public void singleMethodTest1 () {
org.junit.Assert.fail("junit 4: single method failed");
}
}
@@ -0,0 +1,11 @@
package sameClass;
import org.junit.Test;
public class MySameClass {
@Test
public void singleMethodTest2 () {
org.junit.Assert.fail("junit 4: single method failed");
}
}