73747576777879
assertEquals( -1, code ); } private Cargo newCargo( double size ) { return new CargoImpl( size ); }
3132333435363738
@Override protected void setUp() throws Exception { BookingPolicy policy = new OverbookingPolicy(); shippingService = new ShippingServiceImpl( policy ); voyage = newVoyage( "Singapore", "New York" ); }
78798081828384
return new CargoImpl( size ); } private Voyage newVoyage( String sourceCity, String destinationCity ) { return new VoyageImpl( 100 ); // Fake the finder to just return a new Voyage for the demonstration purpose. }