java testing work

This commit is contained in:
eugenp 2014-08-05 11:43:48 +03:00
parent 2f20d855de
commit c1e7dc0d33
1 changed files with 15 additions and 1 deletions

View File

@ -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;