|
|
@@ -45,14 +45,6 @@ public class BookingServiceTest extends TestCase {
|
|
45
|
45
|
assertEquals(expectedTrackingId, trackingId);
|
|
46
|
46
|
}
|
|
47
|
47
|
|
|
48
|
|
- public void testRegisterNewNullArguments() {
|
|
49
|
|
- replay(cargoRepository, locationRepository);
|
|
50
|
|
- try {
|
|
51
|
|
- bookingService.bookNewCargo(null, null, null);
|
|
52
|
|
- fail("Null arguments should not be allowed");
|
|
53
|
|
- } catch (IllegalArgumentException expected) {}
|
|
54
|
|
- }
|
|
55
|
|
-
|
|
56
|
48
|
protected void tearDown() throws Exception {
|
|
57
|
49
|
verify(cargoRepository, locationRepository);
|
|
58
|
50
|
}
|