|
@ -58,7 +58,7 @@ public class AccountTest { |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
@DisplayName("Should Not add Account details when Address is null") |
|
|
@DisplayName("Should Not add Account details when Address is null") |
|
|
public void shouldThrowRuntimeExceptionWhenAddressIsNull(){ |
|
|
|
|
|
|
|
|
public void shouldThrowRuntimeExceptionWhenPersonAddressIsNull(){ |
|
|
assertThrows(RuntimeException.class, () -> { |
|
|
assertThrows(RuntimeException.class, () -> { |
|
|
account1.addAccountDetails("John", null,"max.mustermann@gmail.com", "0151283290" ); |
|
|
account1.addAccountDetails("John", null,"max.mustermann@gmail.com", "0151283290" ); |
|
|
}); |
|
|
}); |
|
|