Search in sources :

Example 11 with TrafficLight

use of il.ac.technion.cs.yp.btw.classes.TrafficLight in project BTW by TechnionYearlyProject.

the class TestTrafficLightDataBase method testGetTrafficLight.

/*
     * @author Sharon Hadar
     * @Date 21/01/2018*/
@Test
public void testGetTrafficLight() {
    MainDataBase.openConnection();
    TrafficLight trafficLight = TrafficLightsDataBase.getTrafficLight("from:7 street section 3 to:7 street section 3R", "mapName");
    assertNotNull(trafficLight);
    // System.out.println(trafficLight.toString());
    MainDataBase.closeConnection();
}
Also used : TrafficLight(il.ac.technion.cs.yp.btw.classes.TrafficLight) Test(org.junit.Test)

Aggregations

TrafficLight (il.ac.technion.cs.yp.btw.classes.TrafficLight)11 DataTrafficLight (il.ac.technion.cs.yp.btw.db.DataObjects.DataTrafficLight)7 Point (il.ac.technion.cs.yp.btw.classes.Point)5 Test (org.junit.Test)5 PointImpl (il.ac.technion.cs.yp.btw.classes.PointImpl)4 Road (il.ac.technion.cs.yp.btw.classes.Road)4 Crossroad (il.ac.technion.cs.yp.btw.classes.Crossroad)3 SQLException (java.sql.SQLException)3 HashSet (java.util.HashSet)3 DataCrossRoad (il.ac.technion.cs.yp.btw.db.DataObjects.DataCrossRoad)2 DataRoad (il.ac.technion.cs.yp.btw.db.DataObjects.DataRoad)2 JsonArray (com.google.gson.JsonArray)1 JsonElement (com.google.gson.JsonElement)1 JsonObject (com.google.gson.JsonObject)1 JsonParser (com.google.gson.JsonParser)1 CityCrossroad (il.ac.technion.cs.yp.btw.citysimulation.CityCrossroad)1 CityRoad (il.ac.technion.cs.yp.btw.citysimulation.CityRoad)1 CityTrafficLight (il.ac.technion.cs.yp.btw.citysimulation.CityTrafficLight)1 VehicleDescriptor (il.ac.technion.cs.yp.btw.citysimulation.VehicleDescriptor)1 VehicleEntry (il.ac.technion.cs.yp.btw.citysimulation.VehicleEntry)1