Package org.datanucleus.store.valuegenerator

Examples of org.datanucleus.store.valuegenerator.UUIDHexGenerator


     * Test for the length of the generated "uuid-hex" string.
     * Should be 32 characters as per the JDO2 spec.
     */
    public void testStringLength()
    {
        UUIDHexGenerator gen = new UUIDHexGenerator("Test", null);
        for (int i=0; i<10; i++)
        {
            Object id = gen.next();
            assertEquals(32, id.toString().length());
        }
    }
View Full Code Here


     */
    public void testEquality()
    {
        // Create 1000 identifiers
        String[] ids = new String[1000];
        UUIDHexGenerator gen = new UUIDHexGenerator("Test", null);
        for (int i=0;i<ids.length;i++)
        {
            ids[i] = (String)gen.next();
        }

        // Check for equality of any of them
        for (int i=0;i<ids.length;i++)
        {
View Full Code Here

     * Test for the length of the generated "uuid-hex" string.
     * Should be 32 characters as per the JDO2 spec.
     */
    public void testStringLength()
    {
        UUIDHexGenerator gen = new UUIDHexGenerator("Test", null);
        for (int i=0; i<10; i++)
        {
            Object id = gen.next();
            assertEquals(32, id.toString().length());
        }
    }
View Full Code Here

     */
    public void testEquality()
    {
        // Create 1000 identifiers
        String[] ids = new String[1000];
        UUIDHexGenerator gen = new UUIDHexGenerator("Test", null);
        for (int i=0;i<ids.length;i++)
        {
            ids[i] = (String)gen.next();
        }

        // Check for equality of any of them
        for (int i=0;i<ids.length;i++)
        {
View Full Code Here

TOP

Related Classes of org.datanucleus.store.valuegenerator.UUIDHexGenerator

Copyright © 2018 www.massapicom. 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.