Skip to content

Commit

Permalink
adapting Unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Aug 18, 2023
1 parent bb7e6e0 commit eeb4ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/de/cuioss/uimodel/model/GenderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package de.cuioss.uimodel.model;

import static de.cuioss.test.generator.Generators.nonEmptyStrings;
import static de.cuioss.test.generator.Generators.letterStrings;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

Expand Down Expand Up @@ -49,7 +49,7 @@ final void shouldHandleUndifinedValues() {
final var expected = Gender.UNKNOWN;
assertEquals(expected, Gender.fromString(null));
assertEquals(expected, Gender.fromString(""));
assertEquals(expected, Gender.fromString(nonEmptyStrings().next()));
assertEquals(expected, Gender.fromString(letterStrings(2, 10).next()));
}

@Test
Expand Down

0 comments on commit eeb4ec9

Please sign in to comment.