Ver código fonte

Merge pull request #9 from karllindmark/patch-1

Remove duplicate try/catch block
rickardsundin 9 anos atrás
pai
commit
b3949c1802

+ 0
- 5
src/test/java/se/citerus/dddsample/domain/model/voyage/CarrierMovementTest.java Ver arquivo

@@ -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) {}