Passwort-Pruefer-Profis/test/java/CredentialsTest.java

19 lines
393 B
Java
Raw Normal View History

2022-11-10 15:51:18 +01:00
import org.junit.jupiter.api.Test;
2022-11-10 15:43:50 +01:00
import static org.junit.jupiter.api.Assertions.*;
class CredentialsTest {
2022-11-10 15:51:18 +01:00
@Test
2022-11-10 16:03:05 +01:00
void existingCheck() {
Credentials cred = new Credentials("apple", "windows");
assertNotNull(cred);
2022-11-10 15:43:50 +01:00
}
2022-11-10 16:03:05 +01:00
@Test
void validData() {
Credentials cred = new Credentials("hofmannol", "GERONIMO");
assertTrue(cred.valid());
}
2022-11-10 15:43:50 +01:00
}