Author: davsclaus
Date: Sat Aug  7 11:43:22 2010
New Revision: 983215

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

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=983215&r1=983214&r2=983215&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
 Sat Aug  7 11:43:22 2010
@@ -20,6 +20,7 @@ import junit.framework.TestCase;
 
 public class ActiveMQUuidGeneratorTest extends TestCase {
     
+    private static final String PATTERN = 
"^ID-.*/\\d{4,5}-\\d{13}/\\d{1}-\\d{1}$";
     private ActiveMQUuidGenerator uuidGenerator;
 
     public void setUp() throws Exception {
@@ -29,9 +30,9 @@ public class ActiveMQUuidGeneratorTest e
     public void testGenerateUUID() {
         String firstUUID = uuidGenerator.generateUuid();
         String secondUUID = uuidGenerator.generateUuid();
-        
-        assertTrue(firstUUID.matches("^ID-.*/\\d{5}-\\d{13}/\\d{1}-\\d{1}$"));
-        assertTrue(secondUUID.matches("^ID-.*/\\d{5}-\\d{13}/\\d{1}-\\d{1}$"));
+
+        assertTrue(firstUUID.matches(PATTERN));
+        assertTrue(secondUUID.matches(PATTERN));
         assertFalse(firstUUID.equals(secondUUID));
     }
 }
\ No newline at end of file


Reply via email to