Package etch.tests.Inheritance

Examples of etch.tests.Inheritance.S2


 
  /** @throws Exception */
  @Test
  public void construct_s2() throws Exception
  {
    check_s2( new S2(), null, null, null, null );
   
    check_s2( new S2( null, null, null, null ), null, null, null, null );
   
    check_s2( new S2( 1, 2, 3, 4 ), 1, 2, 3, 4 );
  }
View Full Code Here


 
  /** @throws Exception */
  @Test
  public void assign_s2() throws Exception
  {
    S2 v = new S2( 1, 2, 3, 4 ); check_s2( v, 1, 2, 3, 4 );
   
    v.a = null;                  check_s2( v, null, 2, 3, 4 );
    v.a = 5;                     check_s2( v, 5, 2, 3, 4 );
    v.setA( null );              check_s2( v, null, 2, 3, 4 );
    v.setA( 6 );                 check_s2( v, 6, 2, 3, 4 );
   
    v.b = null;                  check_s2( v, 6, null, 3, 4 );
    v.b = 7;                     check_s2( v, 6, 7, 3, 4 );
    v.setB( null );              check_s2( v, 6, null, 3, 4 );
    v.setB( 8 );                 check_s2( v, 6, 8, 3, 4 );
   
    v.c = null;                  check_s2( v, 6, 8, null, 4 );
    v.c = 9;                     check_s2( v, 6, 8, 9, 4 );
    v.setC( null );              check_s2( v, 6, 8, null, 4 );
    v.setC( 10 );                check_s2( v, 6, 8, 10, 4 );
   
    v.d = null;                  check_s2( v, 6, 8, 10, null );
    v.d = 11;                    check_s2( v, 6, 8, 10, 11 );
    v.setD( null );              check_s2( v, 6, 8, 10, null );
    v.setD( 12 );                check_s2( v, 6, 8, 10, 12 );
  }
View Full Code Here

      "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() );
   
    assertEquals(
      "S3(S2(S1(a=1; b=2); c=3; d=4); e=5; f=6)",
      new S3( 1, 2, 3, 4, 5, 6 ).toString() );
   
View Full Code Here

  /** @throws Exception */
  @Test
  public void test_s2() throws Exception
  {
    do_s2( new S2( 1, 2, 3, 4 ), new S2Compare() );
    do_s2( new S2( 9, 8, 7, 6 ), new S2Compare() );
  }
View Full Code Here

TOP

Related Classes of etch.tests.Inheritance.S2

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.