1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

removed warnings

This commit is contained in:
oblonski 2014-02-17 22:37:45 +01:00
parent fe4b4ae4ca
commit c1919649c7
4 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,7 @@ import org.junit.Test;
public class DeliveryTest { public class DeliveryTest {
@SuppressWarnings("deprecation")
@Test(expected=IllegalStateException.class) @Test(expected=IllegalStateException.class)
public void whenNeitherLocationIdNorCoordIsSet_itThrowsException(){ public void whenNeitherLocationIdNorCoordIsSet_itThrowsException(){
Delivery.Builder.newInstance("p", 0).build(); Delivery.Builder.newInstance("p", 0).build();
@ -31,6 +32,7 @@ public class DeliveryTest {
assertEquals(0,one.getCapacity().get(0)); assertEquals(0,one.getCapacity().get(0));
} }
@SuppressWarnings("deprecation")
@Test @Test
public void whenPickupIsBuiltWithConstructorWhereSizeIsSpecified_capacityShouldBeSetCorrectly(){ public void whenPickupIsBuiltWithConstructorWhereSizeIsSpecified_capacityShouldBeSetCorrectly(){
Delivery one = (Delivery)Delivery.Builder.newInstance("s",1).setLocationId("foofoo") Delivery one = (Delivery)Delivery.Builder.newInstance("s",1).setLocationId("foofoo")

View file

@ -6,6 +6,7 @@ import org.junit.Test;
public class PickupTest { public class PickupTest {
@SuppressWarnings("deprecation")
@Test(expected=IllegalStateException.class) @Test(expected=IllegalStateException.class)
public void whenNeitherLocationIdNorCoordIsSet_itThrowsException(){ public void whenNeitherLocationIdNorCoordIsSet_itThrowsException(){
Pickup.Builder.newInstance("p", 0).build(); Pickup.Builder.newInstance("p", 0).build();
@ -31,6 +32,7 @@ public class PickupTest {
assertEquals(0,one.getCapacity().get(0)); assertEquals(0,one.getCapacity().get(0));
} }
@SuppressWarnings("deprecation")
@Test @Test
public void whenPickupIsBuiltWithConstructorWhereSizeIsSpecified_capacityShouldBeSetCorrectly(){ public void whenPickupIsBuiltWithConstructorWhereSizeIsSpecified_capacityShouldBeSetCorrectly(){
Pickup one = (Pickup)Pickup.Builder.newInstance("s",1).setLocationId("foofoo") Pickup one = (Pickup)Pickup.Builder.newInstance("s",1).setLocationId("foofoo")

View file

@ -30,7 +30,7 @@ import jsprit.core.util.Coordinate;
import org.junit.Test; import org.junit.Test;
@SuppressWarnings("deprecation")
public class ServiceTest { public class ServiceTest {
@Test @Test

View file

@ -8,7 +8,7 @@ import jsprit.core.util.Coordinate;
import org.junit.Test; import org.junit.Test;
@SuppressWarnings("deprecation")
public class ShipmentTest { public class ShipmentTest {
@Test @Test