Package etch.tests.Inheritance

Examples of etch.tests.Inheritance.S1


 
  /** @throws Exception */
  @Test
  public void construct_s1() throws Exception
  {
    check_s1( new S1(), null, null );
   
    check_s1( new S1( null, null ), null, null );
   
    check_s1( new S1( 1, 2 ), 1, 2 );
  }
View Full Code Here


 
  /** @throws Exception */
  @Test
  public void assign_s1() throws Exception
  {
    S1 v = new S1( 1, 2 ); check_s1( v, 1, 2 );
   
    v.a = null;            check_s1( v, null, 2 );
    v.a = 3;               check_s1( v, 3, 2 );
    v.setA( null );        check_s1( v, null, 2 );
    v.setA( 4 );           check_s1( v, 4, 2 );
   
    v.b = null;            check_s1( v, 4, null );
    v.b = 5;               check_s1( v, 4, 5 );
    v.setB( null );        check_s1( v, 4, null );
    v.setB( 6 );           check_s1( v, 4, 6 );
  }
View Full Code Here

  @Test
  public void tostring() throws Exception
  {
    assertEquals(
      "S1(a=1; b=2)",
      new S1( 1, 2 ).toString() );
   
    assertEquals(
      "S2(S1(a=1; b=2); c=3; d=4)",
      new S2( 1, 2, 3, 4 ).toString() );
   
View Full Code Here

  /** @throws Exception */
  @Test
  public void test_s1() throws Exception
  {
    do_s1( new S1( 1, 2 ), new S1Compare() );
    do_s1( new S1( 9, 8 ), new S1Compare() );
  }
View Full Code Here

TOP

Related Classes of etch.tests.Inheritance.S1

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.