Package org.hornetq.utils

Examples of org.hornetq.utils.UUIDGenerator


   public void testManyUUIDs() throws Exception
   {
      final int MANY_TIMES = getTimes();
      Set<String> uuidsSet = new HashSet<String>();

      UUIDGenerator gen = UUIDGenerator.getInstance();
      for (int i = 0; i < MANY_TIMES; i++)
      {
         uuidsSet.add(gen.generateStringUUID());
      }

      // we put them in a set to check duplicates
      Assert.assertEquals(MANY_TIMES, uuidsSet.size());
   }
View Full Code Here

TOP

Related Classes of org.hornetq.utils.UUIDGenerator

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.