diff --git a/core-java/src/test/java/org/baeldung/java/CoreJavaRandomUnitTest.java b/core-java/src/test/java/org/baeldung/java/CoreJavaRandomUnitTest.java index 36eb8d4714..95cd1b7c50 100644 --- a/core-java/src/test/java/org/baeldung/java/CoreJavaRandomUnitTest.java +++ b/core-java/src/test/java/org/baeldung/java/CoreJavaRandomUnitTest.java @@ -172,12 +172,26 @@ public class CoreJavaRandomUnitTest { } @Test - public void givenUsingApache_whenGeneratingRandomStringUnbounded_thenCorrect() { + public void givenUsingApache_whenGeneratingRandomString_thenCorrect() { final String generatedString = RandomStringUtils.random(10); System.out.println(generatedString); } + @Test + public void givenUsingApache_whenGeneratingRandomAlphabeticString_thenCorrect() { + final String generatedString = RandomStringUtils.randomAlphabetic(10); + + System.out.println(generatedString); + } + + @Test + public void givenUsingApache_whenGeneratingRandomAlphanumericString_thenCorrect() { + final String generatedString = RandomStringUtils.randomAlphanumeric(10); + + System.out.println(generatedString); + } + @Test public void givenUsingApache_whenGeneratingRandomStringBounded_thenCorrect() { final int length = 10;