Skip to content

Commit

Permalink
Set class and methods to public visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
henning-gerhardt committed May 13, 2024
1 parent 6ace832 commit abc83bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;

class HelperTest {
public class HelperTest {

@Test
void generateRandomStringOnlyLetters() {
public void generateRandomStringOnlyLetters() {
String randomString = Helper.generateRandomString(10);
assertTrue(StringUtils.isAlpha(randomString), "Generated string contains not only letters");
}

@Test
void generateRandomStringOnlyNumbers() {
public void generateRandomStringOnlyNumbers() {
String randomString = Helper.generateRandomString(10, false, true);
assertTrue(StringUtils.isNumeric(randomString), "Generated string contains not only numbers");
}

@Test
void generateRandomStringLettersAndNumbers() {
public void generateRandomStringLettersAndNumbers() {
String randomString = Helper.generateRandomString(10, true, true);
assertTrue(StringUtils.isAlphanumeric(randomString), "Generated string contains not only letters and numbers");
}
Expand Down

0 comments on commit abc83bf

Please sign in to comment.