commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r666324 - in /commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor: core/comparator/ core/composite/ example/kata/two/ example/map/
Date Tue, 10 Jun 2008 21:01:41 GMT
Author: mbenson
Date: Tue Jun 10 14:01:40 2008
New Revision: 666324

URL: http://svn.apache.org/viewvc?rev=666324&view=rev
Log:
unchecked

Modified:
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsEquivalent.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThan.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThanOrEqual.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThan.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThanOrEqual.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsNotEquivalent.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAbstractLoopProcedure.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAnd.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestFixedSizeMap.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestLazyMap.java
    commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestPredicatedMap.java

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsEquivalent.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsEquivalent.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsEquivalent.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsEquivalent.java
Tue Jun 10 14:01:40 2008
@@ -42,7 +42,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return IsEquivalent.instance();
+        return IsEquivalent.INSTANCE;
     }
 
     // Lifecycle
@@ -60,7 +60,7 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsEquivalent p = IsEquivalent.instance();
+        IsEquivalent<Integer> p = IsEquivalent.<Integer>instance();
         assertTrue(!p.test(new Integer(2),new Integer(4)));
         assertTrue(!p.test(new Integer(3),new Integer(4)));
         assertTrue(p.test(new Integer(4),new Integer(4)));
@@ -73,13 +73,14 @@
         assertTrue(!IsEquivalent.instance("Xyzzy").test("z"));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsEquivalent p = IsEquivalent.instance();
+        IsEquivalent<Comparable<?>> p = IsEquivalent.INSTANCE;
         assertEquals(p,p);
 
         assertObjectsAreEqual(p,IsEquivalent.instance());
-        assertObjectsAreEqual(p,new IsEquivalent(new ComparableComparator()));
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreEqual(p,new IsEquivalent<Comparable<?>>(new ComparableComparator()));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThan.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThan.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThan.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThan.java
Tue Jun 10 14:01:40 2008
@@ -42,7 +42,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return new IsGreaterThan();
+        return new IsGreaterThan<Comparable<?>>();
     }
 
     // Lifecycle
@@ -60,10 +60,10 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsGreaterThan p = new IsGreaterThan();
-        assertTrue(!p.test(new Integer(2),new Integer(4)));
-        assertTrue(!p.test(new Integer(3),new Integer(4)));
-        assertTrue(!p.test(new Integer(4),new Integer(4)));
+        IsGreaterThan<Integer> p = new IsGreaterThan<Integer>();
+        assertFalse(p.test(new Integer(2),new Integer(4)));
+        assertFalse(p.test(new Integer(3),new Integer(4)));
+        assertFalse(p.test(new Integer(4),new Integer(4)));
         assertTrue(p.test(new Integer(5),new Integer(4)));
         assertTrue(p.test(new Integer(6),new Integer(4)));
     }
@@ -73,14 +73,15 @@
         assertTrue(! IsGreaterThan.instance(new Integer(7)).test(new Integer(6)));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsGreaterThan p = new IsGreaterThan();
+        IsGreaterThan<Comparable<?>> p = new IsGreaterThan<Comparable<?>>();
         assertEquals(p,p);
 
-        assertObjectsAreEqual(p,new IsGreaterThan());
-        assertObjectsAreEqual(p,new IsGreaterThan(new ComparableComparator()));
+        assertObjectsAreEqual(p,new IsGreaterThan<Comparable<?>>());
+        assertObjectsAreEqual(p,new IsGreaterThan<Comparable<?>>(new ComparableComparator()));
         assertObjectsAreEqual(p,IsGreaterThan.instance());
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThanOrEqual.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThanOrEqual.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThanOrEqual.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsGreaterThanOrEqual.java
Tue Jun 10 14:01:40 2008
@@ -42,7 +42,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return new IsGreaterThanOrEqual();
+        return new IsGreaterThanOrEqual<Comparable<?>>();
     }
 
     // Lifecycle
@@ -60,9 +60,9 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsGreaterThanOrEqual p = new IsGreaterThanOrEqual();
-        assertTrue(!p.test(new Integer(2),new Integer(4)));
-        assertTrue(!p.test(new Integer(3),new Integer(4)));
+        IsGreaterThanOrEqual<Integer> p = new IsGreaterThanOrEqual<Integer>();
+        assertFalse(p.test(new Integer(2),new Integer(4)));
+        assertFalse(p.test(new Integer(3),new Integer(4)));
         assertTrue(p.test(new Integer(4),new Integer(4)));
         assertTrue(p.test(new Integer(5),new Integer(4)));
         assertTrue(p.test(new Integer(6),new Integer(4)));
@@ -73,14 +73,15 @@
         assertTrue(! IsGreaterThanOrEqual.instance(new Integer(7)).test(new Integer(6)));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsGreaterThanOrEqual p = new IsGreaterThanOrEqual();
+        IsGreaterThanOrEqual<Comparable<?>> p = new IsGreaterThanOrEqual<Comparable<?>>();
         assertEquals(p,p);
 
-        assertObjectsAreEqual(p,new IsGreaterThanOrEqual());
-        assertObjectsAreEqual(p,new IsGreaterThanOrEqual(new ComparableComparator()));
+        assertObjectsAreEqual(p,new IsGreaterThanOrEqual<Comparable<?>>());
+        assertObjectsAreEqual(p,new IsGreaterThanOrEqual<Comparable<?>>(new ComparableComparator()));
         assertObjectsAreEqual(p,IsGreaterThanOrEqual.instance());
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThan.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThan.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThan.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThan.java
Tue Jun 10 14:01:40 2008
@@ -42,7 +42,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return new IsLessThan();
+        return new IsLessThan<Comparable<?>>();
     }
 
     // Lifecycle
@@ -60,27 +60,28 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsLessThan p = new IsLessThan();
+        IsLessThan<Integer> p = new IsLessThan<Integer>();
         assertTrue(p.test(new Integer(2),new Integer(4)));
         assertTrue(p.test(new Integer(3),new Integer(4)));
-        assertTrue(!p.test(new Integer(4),new Integer(4)));
-        assertTrue(!p.test(new Integer(5),new Integer(4)));
-        assertTrue(!p.test(new Integer(6),new Integer(4)));
+        assertFalse(p.test(new Integer(4),new Integer(4)));
+        assertFalse(p.test(new Integer(5),new Integer(4)));
+        assertFalse(p.test(new Integer(6),new Integer(4)));
     }
 
     public void testInstance() {
-        assertTrue(! IsLessThan.instance(new Integer(7)).test(new Integer(8)));
+        assertFalse(IsLessThan.instance(new Integer(7)).test(new Integer(8)));
         assertTrue(IsLessThan.instance(new Integer(7)).test(new Integer(6)));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsLessThan p = new IsLessThan();
+        IsLessThan<Comparable<?>> p = new IsLessThan<Comparable<?>>();
         assertEquals(p,p);
 
-        assertObjectsAreEqual(p,new IsLessThan());
-        assertObjectsAreEqual(p,new IsLessThan(new ComparableComparator()));
+        assertObjectsAreEqual(p,new IsLessThan<Comparable<?>>());
+        assertObjectsAreEqual(p,new IsLessThan<Comparable<?>>(new ComparableComparator()));
         assertObjectsAreEqual(p,IsLessThan.instance());
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThanOrEqual.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThanOrEqual.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThanOrEqual.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsLessThanOrEqual.java
Tue Jun 10 14:01:40 2008
@@ -42,7 +42,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return new IsLessThanOrEqual();
+        return new IsLessThanOrEqual<Comparable<?>>();
     }
 
     // Lifecycle
@@ -60,27 +60,28 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsLessThanOrEqual p = new IsLessThanOrEqual();
+        IsLessThanOrEqual<Integer> p = new IsLessThanOrEqual<Integer>();
         assertTrue(p.test(new Integer(2),new Integer(4)));
         assertTrue(p.test(new Integer(3),new Integer(4)));
         assertTrue(p.test(new Integer(4),new Integer(4)));
-        assertTrue(!p.test(new Integer(5),new Integer(4)));
-        assertTrue(!p.test(new Integer(6),new Integer(4)));
+        assertFalse(p.test(new Integer(5),new Integer(4)));
+        assertFalse(p.test(new Integer(6),new Integer(4)));
     }
 
     public void testInstance() {
-        assertTrue(! IsLessThanOrEqual.instance(new Integer(7)).test(new Integer(8)));
+        assertFalse(IsLessThanOrEqual.instance(new Integer(7)).test(new Integer(8)));
         assertTrue(IsLessThanOrEqual.instance(new Integer(7)).test(new Integer(6)));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsLessThanOrEqual p = new IsLessThanOrEqual();
+        IsLessThanOrEqual<Comparable<?>> p = new IsLessThanOrEqual<Comparable<?>>();
         assertEquals(p,p);
 
-        assertObjectsAreEqual(p,new IsLessThanOrEqual());
-        assertObjectsAreEqual(p,new IsLessThanOrEqual(new ComparableComparator()));
+        assertObjectsAreEqual(p,new IsLessThanOrEqual<Comparable<?>>());
+        assertObjectsAreEqual(p,new IsLessThanOrEqual<Comparable<?>>(new ComparableComparator()));
         assertObjectsAreEqual(p,IsLessThanOrEqual.instance());
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsNotEquivalent.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsNotEquivalent.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsNotEquivalent.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/comparator/TestIsNotEquivalent.java
Tue Jun 10 14:01:40 2008
@@ -60,7 +60,7 @@
     // ------------------------------------------------------------------------
 
     public void testTest() throws Exception {
-        IsNotEquivalent p = IsNotEquivalent.instance();
+        IsNotEquivalent<Integer> p = new IsNotEquivalent<Integer>();
         assertTrue(p.test(new Integer(2),new Integer(4)));
         assertTrue(p.test(new Integer(3),new Integer(4)));
         assertTrue(!p.test(new Integer(4),new Integer(4)));
@@ -73,13 +73,14 @@
         assertTrue(IsNotEquivalent.instance(new Integer(7)).test(new Integer(8)));
     }
 
+    @SuppressWarnings("unchecked")
     public void testEquals() throws Exception {
-        IsNotEquivalent p = IsNotEquivalent.instance();
+        IsNotEquivalent<Comparable<?>> p = new IsNotEquivalent<Comparable<?>>();
         assertEquals(p,p);
 
-        assertObjectsAreEqual(p,new IsNotEquivalent(new ComparableComparator()));
+        assertObjectsAreEqual(p,new IsNotEquivalent<Comparable<?>>(new ComparableComparator()));
         assertObjectsAreEqual(p,IsNotEquivalent.instance());
-        assertObjectsAreNotEqual(p,new Constant(false));
+        assertObjectsAreNotEqual(p,Constant.FALSE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAbstractLoopProcedure.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAbstractLoopProcedure.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAbstractLoopProcedure.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAbstractLoopProcedure.java
Tue Jun 10 14:01:40 2008
@@ -46,7 +46,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-		return new MockLoopProcedure(new Constant(false), new NoOp());
+		return new MockLoopProcedure(Constant.FALSE, NoOp.INSTANCE);
     }
 
 	// tests

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAnd.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAnd.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAnd.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/core/composite/TestAnd.java
Tue Jun 10 14:01:40 2008
@@ -44,7 +44,7 @@
     // ------------------------------------------------------------------------
 
     protected Object makeFunctor() {
-        return new And(new Constant(true),new Constant(true));
+        return new And(Constant.TRUE, Constant.TRUE);
     }
 
     // Lifecycle
@@ -63,21 +63,21 @@
 
     public void testTrue() throws Exception {
         assertTrue((new And()).test());
-        assertTrue((new And(new Constant(true))).test());
-        assertTrue((new And(new Constant(true),new Constant(true))).test());
-        assertTrue((new And(new Constant(true),new Constant(true),new Constant(true))).test());
+        assertTrue((new And(Constant.TRUE)).test());
+        assertTrue((new And(Constant.TRUE,Constant.TRUE)).test());
+        assertTrue((new And(Constant.TRUE,Constant.TRUE,Constant.TRUE)).test());
 
-        And p = new And(new Constant(true));
+        And p = new And(Constant.TRUE);
         assertTrue(p.test());
         for (int i=0;i<10;i++) {
-            p.and(new Constant(true));
+            p.and(Constant.TRUE);
             assertTrue(p.test());
         }
 
-        And q = new And(new Constant(true));
+        And q = new And(Constant.TRUE);
         assertTrue(q.test());
         for (int i=0;i<10;i++) {
-            q.and(new Constant(true));
+            q.and(Constant.TRUE);
             assertTrue(q.test());
         }
 
@@ -86,21 +86,21 @@
     }
 
     public void testFalse() throws Exception {
-        assertTrue(!(new And(new Constant(false))).test());
-        assertTrue(!(new And(new Constant(true),new Constant(false))).test());
-        assertTrue(!(new And(new Constant(true),new Constant(true),new Constant(false))).test());
+        assertTrue(!(new And(Constant.FALSE)).test());
+        assertTrue(!(new And(Constant.TRUE,Constant.FALSE)).test());
+        assertTrue(!(new And(Constant.TRUE,Constant.TRUE,Constant.FALSE)).test());
 
-        And p = new And(new Constant(false));
+        And p = new And(Constant.FALSE);
         assertTrue(!p.test());
         for (int i=0;i<10;i++) {
-            p.and(new Constant(false));
+            p.and(Constant.FALSE);
             assertTrue(!p.test());
         }
 
-        And q = new And(new Constant(true));
+        And q = new And(Constant.TRUE);
         assertTrue(q.test());
         for (int i=0;i<10;i++) {
-            q.and(new Constant(true));
+            q.and(Constant.TRUE);
             assertTrue(q.test());
         }
 
@@ -109,7 +109,7 @@
     }
 
     public void testDuplicateAdd() throws Exception {
-        Predicate p = new Constant(true);
+        Predicate p = Constant.TRUE;
         And q = new And(p,p);
         assertTrue(q.test());
         for (int i=0;i<10;i++) {
@@ -125,17 +125,17 @@
         assertObjectsAreEqual(p,q);
 
         for (int i=0;i<3;i++) {
-            p.and(Constant.truePredicate());
+            p.and(Constant.TRUE);
             assertObjectsAreNotEqual(p,q);
             q.and(Constant.truePredicate());
             assertObjectsAreEqual(p,q);
-            p.and(new And(Constant.truePredicate(),Constant.falsePredicate()));
+            p.and(new And(Constant.TRUE,Constant.FALSE));
             assertObjectsAreNotEqual(p,q);
-            q.and(new And(Constant.truePredicate(),Constant.falsePredicate()));
+            q.and(new And(Constant.TRUE,Constant.FALSE));
             assertObjectsAreEqual(p,q);
         }
 
-        assertObjectsAreNotEqual(p,Constant.truePredicate());
+        assertObjectsAreNotEqual(p,Constant.TRUE);
     }
 
 }

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java
Tue Jun 10 14:01:40 2008
@@ -73,6 +73,7 @@
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
+@SuppressWarnings("unchecked")
 public class TestBinaryChop extends TestCase {
     public TestBinaryChop(String testName) {
         super(testName);

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestFixedSizeMap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestFixedSizeMap.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestFixedSizeMap.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestFixedSizeMap.java
Tue Jun 10 14:01:40 2008
@@ -28,6 +28,7 @@
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
+@SuppressWarnings("unchecked")
 public class TestFixedSizeMap extends TestCase {
 
     public TestFixedSizeMap(String testName) {

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestLazyMap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestLazyMap.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestLazyMap.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestLazyMap.java
Tue Jun 10 14:01:40 2008
@@ -31,6 +31,7 @@
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
+@SuppressWarnings("unchecked")
 public class TestLazyMap extends TestCase {
 
     public TestLazyMap(String testName) {

Modified: commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestPredicatedMap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestPredicatedMap.java?rev=666324&r1=666323&r2=666324&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestPredicatedMap.java
(original)
+++ commons/sandbox/functor/trunk/src/test/java/org/apache/commons/functor/example/map/TestPredicatedMap.java
Tue Jun 10 14:01:40 2008
@@ -30,6 +30,7 @@
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
+@SuppressWarnings("unchecked")
 public class TestPredicatedMap extends TestCase {
 
     public TestPredicatedMap(String testName) {



Mime
View raw message