|
|
@@ -177,7 +177,7 @@ public class CargoRepositoryTest {
|
|
177
|
177
|
public void testReplaceItinerary() {
|
|
178
|
178
|
Cargo cargo = cargoRepository.find(new TrackingId("FGH"));
|
|
179
|
179
|
Long cargoId = getLongId(cargo);
|
|
180
|
|
- assertEquals(3, jdbcTemplate.queryForInt("select count(*) from Leg where cargo_id = ?", cargoId));
|
|
|
180
|
+ assertEquals(3, jdbcTemplate.queryForObject("select count(*) from Leg where cargo_id = ?", new Object[]{cargoId}, Integer.class).intValue());
|
|
181
|
181
|
|
|
182
|
182
|
Location legFrom = locationRepository.find(new UnLocode("FIHEL"));
|
|
183
|
183
|
Location legTo = locationRepository.find(new UnLocode("DEHAM"));
|
|
|
@@ -188,7 +188,7 @@ public class CargoRepositoryTest {
|
|
188
|
188
|
cargoRepository.store(cargo);
|
|
189
|
189
|
flush();
|
|
190
|
190
|
|
|
191
|
|
- assertEquals(1, jdbcTemplate.queryForInt("select count(*) from Leg where cargo_id = ?", cargoId));
|
|
|
191
|
+ assertEquals(1, jdbcTemplate.queryForObject("select count(*) from Leg where cargo_id = ?", new Object[]{cargoId}, Integer.class).intValue());
|
|
192
|
192
|
}
|
|
193
|
193
|
|
|
194
|
194
|
@Test
|