You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/09/22 10:22:34 UTC

svn commit: r999798 - /camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java

Author: davsclaus
Date: Wed Sep 22 08:22:34 2010
New Revision: 999798

URL: http://svn.apache.org/viewvc?rev=999798&view=rev
Log:
Fixed test

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java?rev=999798&r1=999797&r2=999798&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ActiveMQUuidGeneratorTest.java Wed Sep 22 08:22:34 2010
@@ -25,7 +25,6 @@ import org.apache.commons.logging.LogFac
 public class ActiveMQUuidGeneratorTest extends TestCase {
     
     private static final Log LOG = LogFactory.getLog(ActiveMQUuidGeneratorTest.class);
-    private static final String PATTERN = "^ID-.*/\\d{4,5}-\\d{13}/\\d{1}-\\d{1,10}$";
 
     public void testGenerateUUID() {
         ActiveMQUuidGenerator uuidGenerator = new ActiveMQUuidGenerator();
@@ -33,9 +32,7 @@ public class ActiveMQUuidGeneratorTest e
         String firstUUID = uuidGenerator.generateUuid();
         String secondUUID = uuidGenerator.generateUuid();
 
-        assertTrue(firstUUID.matches(PATTERN));
-        assertTrue(secondUUID.matches(PATTERN));
-        assertFalse(firstUUID.equals(secondUUID));
+        assertNotSame(firstUUID, secondUUID);
     }
 
     public void testPerformance() {