| |
|
| org.apache.commons.lang.RandomStringUtilsTest
RandomStringUtilsTest | public RandomStringUtilsTest(String name)(Code) | | Construct a new instance of RandomStringUtilsTest with the specified name
|
setUp | public void setUp()(Code) | | Set up instance variables required by this test case.
|
suite | public static Test suite()(Code) | | |
tearDown | public void tearDown()(Code) | | Tear down instance variables required by this test case.
|
testConstructor | public void testConstructor()(Code) | | |
testExceptions | public void testExceptions()(Code) | | |
testRandomAlphaNumeric | public void testRandomAlphaNumeric()(Code) | | Make sure boundary alphanumeric characters are generated by randomAlphaNumeric
This test will fail randomly with probability = 6 * (61/62)**1000 ~ 5.2E-7
|
testRandomAlphabetic | public void testRandomAlphabetic()(Code) | | Make sure boundary alpha characters are generated by randomAlphabetic
This test will fail randomly with probability = 4 * (51/52)**1000 ~ 1.58E-8
|
testRandomAscii | public void testRandomAscii()(Code) | | Make sure 32 and 127 are generated by randomNumeric
This test will fail randomly with probability = 2*(95/96)**1000 ~ 5.7E-5
|
testRandomNumeric | public void testRandomNumeric()(Code) | | Make sure '0' and '9' are generated by randomNumeric
This test will fail randomly with probability = 2 * (9/10)**1000 ~ 3.5E-46
|
testRandomStringUtils | public void testRandomStringUtils()(Code) | | Test the implementation
|
testRandomStringUtilsHomog | public void testRandomStringUtilsHomog()(Code) | | Test homogeneity of random strings generated --
i.e., test that characters show up with expected frequencies
in generated strings. Will fail randomly about 1 in 1000 times.
Repeated failures indicate a problem.
|
|
|
|