commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r385388 - /jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/
Date Sun, 12 Mar 2006 23:19:24 GMT
Author: scolebourne
Date: Sun Mar 12 15:19:22 2006
New Revision: 385388

URL: http://svn.apache.org/viewcvs?rev=385388&view=rev
Log:
Fix compilation error by using standard junit fail method

Modified:
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestBooleanStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestByteStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestCharStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestDoubleStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestFloatStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestIntStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestLongStack.java
    jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestShortStack.java

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestBooleanStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestBooleanStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestBooleanStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestBooleanStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -111,8 +110,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestByteStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestByteStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestByteStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestByteStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestCharStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestCharStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestCharStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestCharStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestDoubleStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestDoubleStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestDoubleStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestDoubleStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestFloatStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestFloatStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestFloatStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestFloatStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestIntStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestIntStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestIntStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestIntStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestLongStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestLongStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestLongStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestLongStack.java
Sun Mar 12 15:19:22 2006
@@ -82,8 +82,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -103,8 +102,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {

Modified: jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestShortStack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestShortStack.java?rev=385388&r1=385387&r2=385388&view=diff
==============================================================================
--- jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestShortStack.java
(original)
+++ jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestShortStack.java
Sun Mar 12 15:19:22 2006
@@ -84,8 +84,7 @@
         try
         {
             stack.peek() ;
-            throw new AssertionError( 
-                    "Peek should have thrown an EmptyStackException" ) ;
+            fail("Peek should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {
@@ -105,8 +104,7 @@
         try
         {
             stack.pop() ;
-            throw new AssertionError( 
-                    "Pop should have thrown an EmptyStackException" ) ;
+            fail("Pop should have thrown an EmptyStackException" ) ;
         }
         catch( EmptyStackException e )
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message