|
|
@@ -94,14 +94,14 @@ public class CargoTest extends TestCase {
|
|
94
|
94
|
final CarrierMovement stockholmToHamburg = new CarrierMovement(
|
|
95
|
95
|
new CarrierMovementId("CAR_001"), new Location("SESTO"), new Location("DEHAM"));
|
|
96
|
96
|
|
|
97
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, stockholmToHamburg));
|
|
98
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, stockholmToHamburg));
|
|
|
97
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, new Location("SESTO"), stockholmToHamburg));
|
|
|
98
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, new Location("DEHAM"), stockholmToHamburg));
|
|
99
|
99
|
|
|
100
|
100
|
final CarrierMovement hamburgToHongKong = new CarrierMovement(
|
|
101
|
101
|
new CarrierMovementId("CAR_001"), new Location("DEHAM"), new Location("CNHGK"));
|
|
102
|
102
|
|
|
103
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, hamburgToHongKong));
|
|
104
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, hamburgToHongKong));
|
|
|
103
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, new Location("DEHAM"), hamburgToHongKong));
|
|
|
104
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, new Location("CNHGK"), hamburgToHongKong));
|
|
105
|
105
|
|
|
106
|
106
|
return cargo;
|
|
107
|
107
|
}
|
|
|
@@ -112,13 +112,13 @@ public class CargoTest extends TestCase {
|
|
112
|
112
|
final CarrierMovement stockholmToHamburg = new CarrierMovement(
|
|
113
|
113
|
new CarrierMovementId("CAR_001"), new Location("SESTO"), new Location("DEHAM"));
|
|
114
|
114
|
|
|
115
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, stockholmToHamburg));
|
|
116
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, stockholmToHamburg));
|
|
|
115
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, new Location("SESTO"), stockholmToHamburg));
|
|
|
116
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, new Location("DEHAM"), stockholmToHamburg));
|
|
117
|
117
|
|
|
118
|
118
|
final CarrierMovement hamburgToHongKong = new CarrierMovement(
|
|
119
|
119
|
new CarrierMovementId("CAR_001"), new Location("DEHAM"), new Location("CNHGK"));
|
|
120
|
120
|
|
|
121
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, hamburgToHongKong));
|
|
|
121
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, new Location("DEHAM"), hamburgToHongKong));
|
|
122
|
122
|
|
|
123
|
123
|
return cargo;
|
|
124
|
124
|
}
|
|
|
@@ -129,20 +129,20 @@ public class CargoTest extends TestCase {
|
|
129
|
129
|
final CarrierMovement stockholmToHamburg = new CarrierMovement(
|
|
130
|
130
|
new CarrierMovementId("CAR_001"), new Location("SESTO"), new Location("DEHAM"));
|
|
131
|
131
|
|
|
132
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, stockholmToHamburg));
|
|
133
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, stockholmToHamburg));
|
|
|
132
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, new Location("SESTO"), stockholmToHamburg));
|
|
|
133
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, new Location("DEHAM"), stockholmToHamburg));
|
|
134
|
134
|
|
|
135
|
135
|
final CarrierMovement hamburgToHongKong = new CarrierMovement(
|
|
136
|
136
|
new CarrierMovementId("CAR_001"), new Location("DEHAM"), new Location("CNHGK"));
|
|
137
|
137
|
|
|
138
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, hamburgToHongKong));
|
|
139
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, hamburgToHongKong));
|
|
|
138
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, new Location("DEHAM"), hamburgToHongKong));
|
|
|
139
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, new Location("CNHGK"), hamburgToHongKong));
|
|
140
|
140
|
|
|
141
|
141
|
final CarrierMovement hongKongToMelbourne = new CarrierMovement(
|
|
142
|
142
|
new CarrierMovementId("CAR_001"), new Location("CNHGK"), new Location("AUMEL"));
|
|
143
|
143
|
|
|
144
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-05"), new Date(), HandlingEvent.Type.LOAD, hongKongToMelbourne));
|
|
145
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-07"), new Date(), HandlingEvent.Type.UNLOAD, hongKongToMelbourne));
|
|
|
144
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-05"), new Date(), HandlingEvent.Type.LOAD, new Location("CNHGK"), hongKongToMelbourne));
|
|
|
145
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-07"), new Date(), HandlingEvent.Type.UNLOAD, new Location("AUMEL"), hongKongToMelbourne));
|
|
146
|
146
|
|
|
147
|
147
|
return cargo;
|
|
148
|
148
|
}
|
|
|
@@ -153,19 +153,19 @@ public class CargoTest extends TestCase {
|
|
153
|
153
|
final CarrierMovement stockholmToHamburg = new CarrierMovement(
|
|
154
|
154
|
new CarrierMovementId("CAR_001"), new Location("SESTO"), new Location("DEHAM"));
|
|
155
|
155
|
|
|
156
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, stockholmToHamburg));
|
|
157
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, stockholmToHamburg));
|
|
|
156
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-01"), new Date(), HandlingEvent.Type.LOAD, new Location("SESTO"), stockholmToHamburg));
|
|
|
157
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-02"), new Date(), HandlingEvent.Type.UNLOAD, new Location("DEHAM"), stockholmToHamburg));
|
|
158
|
158
|
|
|
159
|
159
|
final CarrierMovement hamburgToHongKong = new CarrierMovement(
|
|
160
|
160
|
new CarrierMovementId("CAR_001"), new Location("DEHAM"), new Location("CNHGK"));
|
|
161
|
161
|
|
|
162
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, hamburgToHongKong));
|
|
163
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, hamburgToHongKong));
|
|
|
162
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-03"), new Date(), HandlingEvent.Type.LOAD, new Location("DEHAM"), hamburgToHongKong));
|
|
|
163
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-04"), new Date(), HandlingEvent.Type.UNLOAD, new Location("CNHGK"), hamburgToHongKong));
|
|
164
|
164
|
|
|
165
|
165
|
final CarrierMovement hongKongToMelbourne = new CarrierMovement(
|
|
166
|
166
|
new CarrierMovementId("CAR_001"), new Location("CNHGK"), new Location("AUMEL"));
|
|
167
|
167
|
|
|
168
|
|
- cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-05"), new Date(), HandlingEvent.Type.LOAD, hongKongToMelbourne));
|
|
|
168
|
+ cargo.deliveryHistory().addEvent(new HandlingEvent(cargo, getDate("2007-12-05"), new Date(), HandlingEvent.Type.LOAD, new Location("CNHGK"), hongKongToMelbourne));
|
|
169
|
169
|
|
|
170
|
170
|
return cargo;
|
|
171
|
171
|
}
|