package test.pete.executables;

import static org.junit.Assert.assertEquals;

import java.nio.file.Paths;

import org.junit.Before;
import org.junit.Test;

import pete.executables.DirectoryAnalyzer;
import pete.metrics.installability.deployability.DeploymentPackageAnalyzer;
import pete.metrics.installability.server.AverageInstallationTimeCalculator;
import pete.reporting.Report;

public class DirectoryAnalyzerTests {

	private DirectoryAnalyzer sut;

	@Before
	public void setUp() {
	}

	@Test
	public void testDeployability() {
		sut = new DirectoryAnalyzer(new DeploymentPackageAnalyzer());
		Report report = sut.analyzeDirectory(Paths
				.get("src/test/resources/installability/deployment"));
		assertEquals(214, report.getSummedVariable("DE"));
	}

	@Test
	public void testServerInstallability() {
		sut = new DirectoryAnalyzer(new AverageInstallationTimeCalculator());
		Report report = sut.analyzeDirectory(Paths
				.get("src/test/resources/installability/server/"));
		assertEquals("2,88", report.getEntries().get(0).getVariableValue("AIT"));
		assertEquals("1,00", report.getEntries().get(0).getVariableValue("ESR"));
	}

}

@@ -104,33 +104,8 @@
 s;%0A%0A
-import org.junit.Before;%0A
 impo
@@ -427,44 +427,8 @@
 t;%0A%0A
-%09@Before%0A%09public void setUp() %7B%0A%09%7D%0A%0A
 %09@Te

Remove unused setUp method