package prope.executables;

import java.nio.file.Paths;

import org.junit.Test;

public class AnalysisWorkflowTests {

	@Test(expected = IllegalArgumentException.class)
	public void testNonExistingDirectory() {
		@SuppressWarnings("unused")
		AnalysisWorkflow sut = new AnalysisWorkflow(Paths.get("foobar"),
				AnalysisType.DEPLOYABILITY);
	}

}

@@ -32,316 +32,1500 @@
 ort 
-java.nio.file.Paths;%0A%0Aimport org.junit.Test;%0A%0Apublic class AnalysisWorkflowTests %7B%0A%0A%09@Test(expected = IllegalArgumentException.class)%0A%09public void testNonExistingDirectory() %7B%0A%09%09@SuppressWarnings(%22unused%22)%0A%09%09AnalysisWorkflow sut = new AnalysisWorkflow(Paths.get(%22foobar%22),%0A%09%09%09%09AnalysisType.DEPLOYABILITY);%0A%09%7D%0A
+static org.junit.Assert.assertEquals;%0A%0Aimport java.nio.file.Paths;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0A%0Aimport prope.reporting.ReportEntry;%0A%0Apublic class AnalysisWorkflowTests %7B%0A%09%0A%09private AnalysisWorkflow sut;%0A%09%0A%09private final String deployabilityResourcesPath = %22src/test/resources/installability/deployment/%22;%0A%0A%09@Test(expected = IllegalArgumentException.class)%0A%09public void testNonExistingDirectory() %7B%0A%09%09sut = new AnalysisWorkflow(Paths.get(%22foobar%22),%0A%09%09%09%09AnalysisType.DEPLOYABILITY);%0A%09%7D%0A%09%0A%09@Test%0A%09public void deployabilityAnalysis()%7B%0A%09%09sut = new AnalysisWorkflow(Paths.get(deployabilityResourcesPath + %22xmlDescriptorWithText.zip%22),%0A%09%09%09%09AnalysisType.DEPLOYABILITY);%0A%09%09%0A%09%09List%3CReportEntry%3E results = sut.start().getEntries();%0A%09%09assertEquals(results.size(),1);%0A%09%09%0A%09%09ReportEntry entry = results.get(0);%0A%09%09assertEquals(14, getDeploymentEffort(entry));%0A%09%09assertEquals(2, getEffortOfPackageConstruction(entry));%0A%09%09assertEquals(12, getDescriptorComplexity(entry));%0A%09%7D%0A%0A%09private int getDeploymentEffort(ReportEntry entry) %7B%0A%09%09if (entry != null) %7B%0A%09%09%09return Integer.parseInt(entry.getVariableValue(%22DE%22));%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D%0A%0A%09private int getEffortOfPackageConstruction(ReportEntry entry) %7B%0A%09%09if (entry != null) %7B%0A%09%09%09return Integer.parseInt(entry.getVariableValue(%22EPC%22));%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D%0A%0A%09private int getDescriptorComplexity(ReportEntry entry) %7B%0A%09%09if (entry != null) %7B%0A%09%09%09return Integer.parseInt(entry.getVariableValue(%22DDS%22));%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

Add integration test for deployability analysis