commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/builder EqualsBuilderTest.java
Date Sun, 08 Dec 2002 21:10:11 GMT
scolebourne    2002/12/08 13:10:11

  Modified:    lang/src/test/org/apache/commons/lang/builder
                        EqualsBuilderTest.java
  Log:
  Add ability to build compound equals using superclass
  
  Revision  Changes    Path
  1.2       +10 -1     jakarta-commons/lang/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java
  
  Index: EqualsBuilderTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EqualsBuilderTest.java	12 Sep 2002 22:00:35 -0000	1.1
  +++ EqualsBuilderTest.java	8 Dec 2002 21:10:11 -0000	1.2
  @@ -130,6 +130,15 @@
           assertTrue(EqualsBuilder.reflectionEquals((Object) null, (Object) null));
       }
   
  +    public void testSuper() {
  +        TestObject o1 = new TestObject(4);
  +        TestObject o2 = new TestObject(5);
  +        assertEquals(true, new EqualsBuilder().appendSuper(true).append(o1, o1).isEquals());
  +        assertEquals(false, new EqualsBuilder().appendSuper(false).append(o1, o1).isEquals());
  +        assertEquals(false, new EqualsBuilder().appendSuper(true).append(o1, o2).isEquals());
  +        assertEquals(false, new EqualsBuilder().appendSuper(false).append(o1, o2).isEquals());
  +    }
  +
       public void testObject() {
           TestObject o1 = new TestObject(4);
           TestObject o2 = new TestObject(5);
  
  
  

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


Mime
View raw message