Commit f5a5ccad authored by hengwen's avatar hengwen

Adapt to change in Util class

parent f5f85762
......@@ -6,6 +6,7 @@ import server.restful.dao.MapDAO;
import server.restful.dao.ScenarioDAO;
import server.restful.dao.SimulationDAO;
import server.restful.registry.RegistryFactory;
import server.restful.util.Util;
import java.util.Properties;
......@@ -18,7 +19,7 @@ public class SimulationServiceTest extends TestCase {
int simID = SimulationDAO.create(scenarioID, 2);
SimulationService sim = new SimulationService(simID);
try {
sim.startSimulation(RegistryFactory.getZookeeperRegistry());
sim.startSimulation(RegistryFactory.getDefaultRegistry());
sim.getResult();
assertEquals(1, sim.getResult().size());
assertTrue(sim.getResult().get(0).getFrames().size() > 0);
......@@ -33,7 +34,7 @@ public class SimulationServiceTest extends TestCase {
int mapID = MapDAO.create("straight.osm", getClass().getResource("/straight.osm").getPath());
int simID = SimulationDAO.create(scenarioID, 2);
SimulationService sim = new SimulationService(simID);
Properties prop = sim.getProp();
Properties prop = Util.getProperties();
assertTrue(prop.size() > 0);
}
}
\ No newline at end of file
Markdown is supported
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