Package org.hibernate.search.test.SerializationTestHelper.Foo

Examples of org.hibernate.search.test.SerializationTestHelper.Foo.TestInnerClass


      return copy;
  }
 
  public void testSelf() throws IOException, ClassNotFoundException {
    Foo a = new Foo();
    a.list.add( new TestInnerClass(30) );
    Foo b = (Foo) duplicateBySerialization( a );
    assertEquals( Integer.valueOf(6), a.integer);
    assertEquals( Integer.valueOf(7), b.integer);
    assertEquals( a.list, b.list );
  }
View Full Code Here


          return true;
        if (obj == null)
          return false;
        if (getClass() != obj.getClass())
          return false;
        final TestInnerClass other = (TestInnerClass) obj;
        if (v != other.v)
          return false;
        return true;
      }
View Full Code Here

      return copy;
  }
 
  public void testSelf() throws IOException, ClassNotFoundException {
    Foo a = new Foo();
    a.list.add( new TestInnerClass(30) );
    Foo b = (Foo) duplicateBySerialization( a );
    assertEquals( Integer.valueOf(6), a.integer);
    assertEquals( Integer.valueOf(7), b.integer);
    assertEquals( a.list, b.list );
  }
View Full Code Here

          return true;
        if (obj == null)
          return false;
        if (getClass() != obj.getClass())
          return false;
        final TestInnerClass other = (TestInnerClass) obj;
        if (v != other.v)
          return false;
        return true;
      }
View Full Code Here

  }

  @Test
  public void testSelf() throws IOException, ClassNotFoundException {
    Foo a = new Foo();
    a.list.add( new TestInnerClass( 30 ) );
    Foo b = (Foo) duplicateBySerialization( a );
    assertEquals( Integer.valueOf( 6 ), a.integer );
    assertEquals( Integer.valueOf( 7 ), b.integer );
    assertEquals( a.list, b.list );
  }
View Full Code Here

          return false;
        }
        if ( getClass() != obj.getClass() ) {
          return false;
        }
        final TestInnerClass other = (TestInnerClass) obj;
        if ( v != other.v ) {
          return false;
        }
        return true;
      }
View Full Code Here

TOP

Related Classes of org.hibernate.search.test.SerializationTestHelper.Foo.TestInnerClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.