Search in sources :

Example 21 with ProjectModules

use of de.dagere.peass.execution.utils.ProjectModules 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());
}
Also used : ProjectModules(de.dagere.peass.execution.utils.ProjectModules) ExecutionConfig(de.dagere.peass.config.ExecutionConfig) File(java.io.File) Test(org.junit.jupiter.api.Test)

Aggregations

ProjectModules (de.dagere.peass.execution.utils.ProjectModules)21 File (java.io.File)19 Test (org.junit.jupiter.api.Test)14 ExecutionConfig (de.dagere.peass.config.ExecutionConfig)12 ModuleClassMapping (de.dagere.peass.dependency.analysis.ModuleClassMapping)5 TestCase (de.dagere.peass.dependency.analysis.data.TestCase)4 TestSet (de.dagere.peass.dependency.analysis.data.TestSet)3 JmhTestTransformer (de.dagere.peass.dependency.jmh.JmhTestTransformer)3 GradleBuildfileEditor (de.dagere.peass.execution.gradle.GradleBuildfileEditor)2 IOException (java.io.IOException)2 LinkedList (java.util.LinkedList)2 ProjectChanges (de.dagere.peass.analysis.changes.ProjectChanges)1 StatisticsConfig (de.dagere.peass.config.StatisticsConfig)1 OneTraceGenerator (de.dagere.peass.dependency.traces.OneTraceGenerator)1 ProcessSuccessTester (de.dagere.peass.execution.processutils.ProcessSuccessTester)1 GitCommit (de.dagere.peass.vcs.GitCommit)1 XmlPullParserException (org.codehaus.plexus.util.xml.pull.XmlPullParserException)1 Test (org.junit.Test)1