| org.apache.jetspeed.idgenerator.TestIdGenerator
TestIdGenerator | public class TestIdGenerator extends TestCase (Code) | | TestIdGenerator
author: Paul Spencer version: $Id: TestIdGenerator.java 516448 2007-03-09 16:25:47Z ate $ |
Method Summary | |
public static void | main(String args) Start the tests.
Parameters: args - the arguments. | public static Test | suite() Creates the test suite. | public void | testVerifyIncreasingPeid() Simple test that verify the PEIDs are increasing. | public void | testVerifyUniquePeid() Simple test that verify the PEID are unique. |
main | public static void main(String args)(Code) | | Start the tests.
Parameters: args - the arguments. Not used |
suite | public static Test suite()(Code) | | Creates the test suite.
a test suite (TestSuite ) that includes all methodsstarting with "test" |
testVerifyIncreasingPeid | public void testVerifyIncreasingPeid() throws Exception(Code) | | Simple test that verify the PEIDs are increasing. Although this is not a
requirement of the IdGenerator, it is recommended
throws: Exception - |
testVerifyUniquePeid | public void testVerifyUniquePeid() throws Exception(Code) | | Simple test that verify the PEID are unique. This test will generate
ID_TEST_TRIES PEIDs. It will test for a NULL PEID.
Granted, passing this test does not guarantee that a duplicate
PEID will not be generated.
throws: Exception - |
|
|