|
|
@@ -49,7 +49,7 @@ public class HandlingEventFactoryTest extends TestCase {
|
|
49
|
49
|
VoyageNumber voyageNumber = CM001.voyageNumber();
|
|
50
|
50
|
UnLocode unLocode = STOCKHOLM.unLocode();
|
|
51
|
51
|
HandlingEvent handlingEvent = factory.createHandlingEvent(
|
|
52
|
|
- new Date(100), trackingId, voyageNumber, unLocode, Type.LOAD
|
|
|
52
|
+ new Date(100), trackingId, voyageNumber, unLocode, Type.LOAD, new OperatorCode("ABCDE")
|
|
53
|
53
|
);
|
|
54
|
54
|
|
|
55
|
55
|
assertNotNull(handlingEvent);
|
|
|
@@ -67,7 +67,7 @@ public class HandlingEventFactoryTest extends TestCase {
|
|
67
|
67
|
|
|
68
|
68
|
UnLocode unLocode = STOCKHOLM.unLocode();
|
|
69
|
69
|
HandlingEvent handlingEvent = factory.createHandlingEvent(
|
|
70
|
|
- new Date(100), trackingId, null, unLocode, Type.CLAIM
|
|
|
70
|
+ new Date(100), trackingId, null, unLocode, Type.CLAIM, new OperatorCode("ABCDE")
|
|
71
|
71
|
);
|
|
72
|
72
|
|
|
73
|
73
|
assertNotNull(handlingEvent);
|
|
|
@@ -86,7 +86,7 @@ public class HandlingEventFactoryTest extends TestCase {
|
|
86
|
86
|
UnLocode invalid = new UnLocode("NOEXT");
|
|
87
|
87
|
try {
|
|
88
|
88
|
factory.createHandlingEvent(
|
|
89
|
|
- new Date(100), trackingId, CM001.voyageNumber(), invalid, Type.LOAD
|
|
|
89
|
+ new Date(100), trackingId, CM001.voyageNumber(), invalid, Type.LOAD, new OperatorCode("ABCDE")
|
|
90
|
90
|
);
|
|
91
|
91
|
fail("Expected UnknownLocationException");
|
|
92
|
92
|
} catch (UnknownLocationException expected) {
|
|
|
@@ -101,7 +101,7 @@ public class HandlingEventFactoryTest extends TestCase {
|
|
101
|
101
|
try {
|
|
102
|
102
|
VoyageNumber invalid = new VoyageNumber("XXX");
|
|
103
|
103
|
factory.createHandlingEvent(
|
|
104
|
|
- new Date(100), trackingId, invalid, STOCKHOLM.unLocode(), Type.LOAD
|
|
|
104
|
+ new Date(100), trackingId, invalid, STOCKHOLM.unLocode(), Type.LOAD, new OperatorCode("ABCDE")
|
|
105
|
105
|
);
|
|
106
|
106
|
fail("Expected UnknownVoyageException");
|
|
107
|
107
|
} catch (UnknownVoyageException expected) {
|
|
|
@@ -115,7 +115,7 @@ public class HandlingEventFactoryTest extends TestCase {
|
|
115
|
115
|
|
|
116
|
116
|
try {
|
|
117
|
117
|
factory.createHandlingEvent(
|
|
118
|
|
- new Date(100), trackingId, CM001.voyageNumber(), STOCKHOLM.unLocode(), Type.LOAD
|
|
|
118
|
+ new Date(100), trackingId, CM001.voyageNumber(), STOCKHOLM.unLocode(), Type.LOAD, new OperatorCode("ABCDE")
|
|
119
|
119
|
);
|
|
120
|
120
|
fail("Expected UnknownCargoException");
|
|
121
|
121
|
} catch (UnknownCargoException expected) {
|