|
|
@ -107,4 +107,12 @@ public class AccountServiceTest { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
@DisplayName("Should Not Create Account when password is blank") |
|
|
|
public void shouldThrowRuntimeExceptionWhenPasswordIsNull(){ |
|
|
|
assertThrows(RuntimeException.class, () -> { |
|
|
|
accountService.createAccount("John", "", Account.AccountStatus.ACTIVE); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |