Commit 5bc0fbe3 authored by hengwen's avatar hengwen
Browse files

Add log

parent 61f59d7b
......@@ -3,6 +3,8 @@ package server.restful.service;
import junit.framework.TestCase;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import server.restful.dao.MapDAO;
import server.restful.dao.ScenarioDAO;
import server.restful.dao.SimulationDAO;
......@@ -30,6 +32,7 @@ public class SimulationServiceTest extends TestCase {
*/
@Test
public void testSimulation() throws Exception {
Logger logger = LoggerFactory.getLogger(VehicleService.class);
ScenarioModel scenario = ScenarioService.saveScenario(
new FileInputStream(getClass().getResource("/chargingstation.sim").getPath()),
"uploaded.sim"
......@@ -44,7 +47,7 @@ public class SimulationServiceTest extends TestCase {
// if we can set the charging battery target to a lower value rather than 100%,
// it will be much quicker.
while(!sim.isSimulationFinished()){
System.out.println("Waiting for simulation result...");
logger.info("Waiting for simulation result...");
Thread.sleep(5000);
}
......
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