Commit f72281e6 authored by Jonathan Shahen's avatar Jonathan Shahen
Browse files

HOTFIX: forgot to add the JUint test file for PlacementMapFile on the last commit

parent 6f10cf51
package vagabond.testing;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import vagabond.pieces.EpochHistory;
import vagabond.pieces.PlacementMap;
import vagabond.placement.PlacementMapFile;
public class PlacementMapFileTests {
@Test
public void testReadEpochHistory() throws IOException {
EpochHistory eh = PlacementMapFile.readEpochHistory(new File("tests/placementMapHistory.csv"));
PlacementMap pControl = PlacementMapExamples.nomadSubOptimalRCPlacement();
assertEquals(5, eh.size());
assertTrue(pControl.equals(eh._latestPlacementMap));
}
@Test
public void testReadPlacementMap() throws IOException {
PlacementMap pTest = PlacementMapFile.readPlacementMap("tests/nomadSubOptimalRCPlacement.csv");
PlacementMap pControl = PlacementMapExamples.nomadSubOptimalRCPlacement();
assertTrue(pControl.equals(pTest));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment