Browse Source

commit

master
Yannick Rosenauer 5 months ago
parent
commit
a400c3990f
3 changed files with 41 additions and 0 deletions
  1. 17
    0
      .idea/libraries/junit_jupiter.xml
  2. 2
    0
      Prog3AGit.iml
  3. 22
    0
      src/PasswordCheckerTest.java

+ 17
- 0
.idea/libraries/junit_jupiter.xml View File

@@ -0,0 +1,17 @@
<component name="libraryTable">
<library name="junit.jupiter" type="repository">
<properties maven-id="org.junit.jupiter:junit-jupiter:5.8.1" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.8.1/junit-jupiter-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.8.1/junit-jupiter-api-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.8.1/junit-platform-commons-1.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.8.1/junit-jupiter-params-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.8.1/junit-jupiter-engine-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.8.1/junit-platform-engine-1.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

+ 2
- 0
Prog3AGit.iml View File

@@ -7,5 +7,7 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="junit.jupiter" level="project" />
<orderEntry type="library" name="mockito.core" level="project" />
</component>
</module>

+ 22
- 0
src/PasswordCheckerTest.java View File

@@ -0,0 +1,22 @@
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

class PasswordCheckerTest {

@Test
void pwLength() {
assertTrue(PasswordChecker.pwLength("passwort"));
}
@Test
void pwContainsNum() {
assertTrue(PasswordChecker.pwContainsNum("pass1"));
}

@Test
void pwContainsSpecialNum() {
assertTrue(PasswordChecker.pwContainsSpecial("pass#"));
}


}

Loading…
Cancel
Save