Examples of RandomKeyGenerator


Examples of com.sworddance.util.RandomKeyGenerator

        this.setFlowLifecycleState(created);
    }

    // HACK : TODO lookupKey injection
    private String createLookupKey() {
        return this.flowTypeName +"_"+ new RandomKeyGenerator(8).nextKey().toString();
    }
View Full Code Here

Examples of com.sworddance.util.RandomKeyGenerator

     * Generate 1000 random keys and check length of them
     *
     */
    @Test
    public void testGeneration() {
        RandomKeyGenerator rnd = new RandomKeyGenerator(7);
        for (int i = 0; i < 1000; i++) {
            String nextKey = rnd.nextKey();
            assertNotNull(nextKey);
            assertEquals(nextKey.length(), 7);
        }
        assertEquals(rnd.nextKey(100).length(), 100);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.