Преглед изворни кода

Remove duplicate try-catch block

I think this might be a leftover from when `CarrierMovement` used to have five constructor parameters, and the test was passing null into different positions. Once refactored the statements ended up looking quite the same instead.
Karl Lindmark пре 10 година
родитељ
комит
20fe3f8c1d

+ 0
- 5
src/test/java/se/citerus/dddsample/domain/model/voyage/CarrierMovementTest.java Прегледај датотеку

@@ -15,11 +15,6 @@ public class CarrierMovementTest extends TestCase {
15 15
     } catch (IllegalArgumentException expected) {}
16 16
 
17 17
     try {
18
-      new CarrierMovement(null, null, new Date(), new Date());
19
-      fail("Should not accept null constructor arguments");
20
-    } catch (IllegalArgumentException expected) {}
21
-
22
-    try {
23 18
       new CarrierMovement(STOCKHOLM, null, new Date(), new Date());
24 19
       fail("Should not accept null constructor arguments");
25 20
     } catch (IllegalArgumentException expected) {}