Author: jlmonteiro
Date: Wed Jun 16 19:43:05 2010
New Revision: 955359

URL: http://svn.apache.org/viewvc?rev=955359&view=rev
Log:
Remove TimeUnit.MINUTES as it's only available in Java 6

Modified:
    
openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/util/CountingLatchTest.java

Modified: 
openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/util/CountingLatchTest.java
URL: 
http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/util/CountingLatchTest.java?rev=955359&r1=955358&r2=955359&view=diff
==============================================================================
--- 
openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/util/CountingLatchTest.java
 (original)
+++ 
openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/util/CountingLatchTest.java
 Wed Jun 16 19:43:05 2010
@@ -28,31 +28,31 @@ public class CountingLatchTest extends T
     public void testDown() throws Exception {
         CountingLatch latch = new CountingLatch();
 
-        assertTrue(latch.await(0, TimeUnit.MINUTES));
+        assertTrue(latch.await(0, TimeUnit.SECONDS));
 
         latch.countUp();
 
-        assertFalse(latch.await(0, TimeUnit.MINUTES));
+        assertFalse(latch.await(0, TimeUnit.SECONDS));
 
         latch.countUp();
 
-        assertFalse(latch.await(0, TimeUnit.MINUTES));
+        assertFalse(latch.await(0, TimeUnit.SECONDS));
 
         latch.countDown();
 
-        assertFalse(latch.await(0, TimeUnit.MINUTES));
+        assertFalse(latch.await(0, TimeUnit.SECONDS));
 
         latch.countDown();
 
-        assertTrue(latch.await(0, TimeUnit.MINUTES));
+        assertTrue(latch.await(0, TimeUnit.SECONDS));
 
         latch.countUp();
 
-        assertFalse(latch.await(0, TimeUnit.MINUTES));
+        assertFalse(latch.await(0, TimeUnit.SECONDS));
 
         latch.countDown();
 
-        assertTrue(latch.await(0, TimeUnit.MINUTES));
+        assertTrue(latch.await(0, TimeUnit.SECONDS));
     }
 
 }


Reply via email to