Browse Source

add PasswordGenerator class

feature-password-generator
binsky 3 years ago
parent
commit
6b13284a52
  1. 5
      src/main/java/PasswordGenerator.java
  2. 19
      src/test/java/PasswordGeneratorTest.java

5
src/main/java/PasswordGenerator.java

@ -0,0 +1,5 @@
public class PasswordGenerator {
public String generateRandomPassword() {
return "";
}
}

19
src/test/java/PasswordGeneratorTest.java

@ -0,0 +1,19 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PasswordGeneratorTest {
static PasswordGenerator passwordGenerator;
@BeforeAll
static void init() {
passwordGenerator = new PasswordGenerator();
}
@Test
void generateRandomPassword() {
assertSame("", passwordGenerator.generateRandomPassword());
}
}
Loading…
Cancel
Save