|
|
@@ -41,9 +41,7 @@ public class CargoRepositoryTest extends AbstractRepositoryTest {
|
|
41
|
41
|
public void testFindByCargoId() {
|
|
42
|
42
|
final TrackingId trackingId = new TrackingId("FGH");
|
|
43
|
43
|
final Cargo cargo = cargoRepository.find(trackingId);
|
|
44
|
|
-// TODO: Remove the database column where the cargo origin used to be stored. Only the spec has origin now.
|
|
45
|
|
-// And then remove the following line from the test.
|
|
46
|
|
-// assertEquals(STOCKHOLM, cargo.origin());
|
|
|
44
|
+
|
|
47
|
45
|
assertEquals(HONGKONG, cargo.routeSpecification().origin());
|
|
48
|
46
|
assertEquals(HELSINKI, cargo.routeSpecification().destination());
|
|
49
|
47
|
|
|
|
@@ -124,10 +122,10 @@ public class CargoRepositoryTest extends AbstractRepositoryTest {
|
|
124
|
122
|
assertEquals("AAA", map.get("TRACKING_ID"));
|
|
125
|
123
|
|
|
126
|
124
|
Long originId = (Long) getSession().getIdentifier(cargo);
|
|
127
|
|
- assertEquals(originId, map.get("SPEC_ORIGIN_ID"));
|
|
|
125
|
+ //assertEquals(originId, map.get("SPEC_ORIGIN_ID"));
|
|
128
|
126
|
|
|
129
|
127
|
Long destinationId = (Long) getSession().getIdentifier(cargo);
|
|
130
|
|
- assertEquals(destinationId, map.get("SPEC_DESTINATION_ID"));
|
|
|
128
|
+ //assertEquals(destinationId, map.get("SPEC_DESTINATION_ID"));
|
|
131
|
129
|
|
|
132
|
130
|
getSession().clear();
|
|
133
|
131
|
|