Browse Source

account details person address validation

feature-pr-Person
Sona Markosyan 3 years ago
parent
commit
916539f216
  1. 2
      src/test/java/hs/fulda/de/ci/exam/project/AccountTest.java

2
src/test/java/hs/fulda/de/ci/exam/project/AccountTest.java

@ -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" );
}); });

Loading…
Cancel
Save