You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2003/12/03 16:24:46 UTC

cvs commit: jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/composite TestCompositeUnaryProcedure.java TestCompositeUnaryPredicate.java

rwaldhoff    2003/12/03 07:24:46

  Modified:    functor/src/test/org/apache/commons/functor/core/composite
                        TestCompositeUnaryProcedure.java
                        TestCompositeUnaryPredicate.java
  Log:
  add tests
  
  Revision  Changes    Path
  1.3       +8 -2      jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/composite/TestCompositeUnaryProcedure.java
  
  Index: TestCompositeUnaryProcedure.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/composite/TestCompositeUnaryProcedure.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestCompositeUnaryProcedure.java	3 Dec 2003 01:07:36 -0000	1.2
  +++ TestCompositeUnaryProcedure.java	3 Dec 2003 15:24:46 -0000	1.3
  @@ -114,6 +114,12 @@
               // expected
           }
           try {
  +            new CompositeUnaryProcedure(null,null);
  +            fail("Expected NullPointerException");
  +        } catch(NullPointerException e) {
  +            // expected
  +        }
  +        try {
               new CompositeUnaryProcedure(NoOp.instance(),null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
  
  
  
  1.3       +8 -2      jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/composite/TestCompositeUnaryPredicate.java
  
  Index: TestCompositeUnaryPredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/composite/TestCompositeUnaryPredicate.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestCompositeUnaryPredicate.java	3 Dec 2003 01:07:36 -0000	1.2
  +++ TestCompositeUnaryPredicate.java	3 Dec 2003 15:24:46 -0000	1.3
  @@ -115,6 +115,12 @@
               // expected
           }
           try {
  +            new CompositeUnaryPredicate(null,null);
  +            fail("Expected NullPointerException");
  +        } catch(NullPointerException e) {
  +            // expected
  +        }
  +        try {
               new CompositeUnaryPredicate(Constant.truePredicate(),null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
  
  
  

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