use of de.dagere.peass.config.ExecutionConfig in project peass by DaGeRe.
the class TestNonIncludedTestRemover method testWithSetExclude.
@Test
public void testWithSetExclude() {
Set<TestCase> tests = new HashSet<TestCase>();
tests.add(new TestCase("TestA", "method1"));
tests.add(new TestCase("TestA", "method2"));
tests.add(new TestCase("TestB", "method3"));
tests.add(new TestCase("TestC", null));
tests.add(new TestCase("TestD", null));
ExecutionConfig executionConfig = new ExecutionConfig(Arrays.asList(new String[] { "TestA#*", "TestC" }), "test");
executionConfig.setExcludes(Arrays.asList(new String[] { "TestA#method2" }));
NonIncludedTestRemover.removeNotIncluded(tests, executionConfig);
Assert.assertEquals(2, tests.size());
}
use of de.dagere.peass.config.ExecutionConfig in project peass by DaGeRe.
the class TestNonIncludedTestRemover method testWithSet.
@Test
public void testWithSet() {
Set<TestCase> tests = new HashSet<TestCase>();
tests.add(new TestCase("TestA", "method1"));
tests.add(new TestCase("TestA", "method2"));
tests.add(new TestCase("TestB", "method3"));
tests.add(new TestCase("TestC", null));
tests.add(new TestCase("TestD", null));
NonIncludedTestRemover.removeNotIncluded(tests, new ExecutionConfig(Arrays.asList(new String[] { "TestA#method1", "TestC" }), "test"));
Assert.assertEquals(2, tests.size());
}
use of de.dagere.peass.config.ExecutionConfig in project peass by DaGeRe.
the class TestGetModules method testOtherPl1.
@Test
public void testOtherPl1() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("de.peass:inner-module-1");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(2, modules.getModules().size());
}
use of de.dagere.peass.config.ExecutionConfig in project peass by DaGeRe.
the class TestGetModules method testOtherPl2.
@Test
public void testOtherPl2() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("de.peass:inner-module-test2");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(3, modules.getModules().size());
}
use of de.dagere.peass.config.ExecutionConfig in project peass by DaGeRe.
the class TestGetModules method testPeassWithPl.
@Test
public void testPeassWithPl() {
File pomFile = new File("../pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("measurement");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(2, modules.getModules().size());
}
Aggregations