Package etch.tests.Inheritance

Examples of etch.tests.Inheritance.S3


 
  /** @throws Exception */
  @Test
  public void construct_s3() throws Exception
  {
    check_s3( new S3(), null, null, null, null, null, null );
   
    check_s3( new S3( null, null, null, null, null, null ),
      null, null, null, null, null, null );
   
    check_s3( new S3( 1, 2, 3, 4, 5, 6 ), 1, 2, 3, 4, 5, 6 );
  }
View Full Code Here


 
  /** @throws Exception */
  @Test
  public void assign_s3() throws Exception
  {
    S3 v = new S3( 1, 2, 3, 4, 5, 6 ); check_s3( v, 1, 2, 3, 4, 5, 6 );
   
    v.a = null;                        check_s3( v, null, 2, 3, 4, 5, 6 );
    v.a = 7;                           check_s3( v, 7, 2, 3, 4, 5, 6 );
    v.setA( null );                    check_s3( v, null, 2, 3, 4, 5, 6 );
    v.setA( 8 );                       check_s3( v, 8, 2, 3, 4, 5, 6 );
   
    v.b = null;                        check_s3( v, 8, null, 3, 4, 5, 6 );
    v.b = 9;                           check_s3( v, 8, 9, 3, 4, 5, 6 );
    v.setB( null );                    check_s3( v, 8, null, 3, 4, 5, 6 );
    v.setB( 10 );                      check_s3( v, 8, 10, 3, 4, 5, 6 );
   
    v.c = null;                        check_s3( v, 8, 10, null, 4, 5, 6 );
    v.c = 11;                          check_s3( v, 8, 10, 11, 4, 5, 6 );
    v.setC( null );                    check_s3( v, 8, 10, null, 4, 5, 6 );
    v.setC( 12 );                      check_s3( v, 8, 10, 12, 4, 5, 6 );
   
    v.d = null;                        check_s3( v, 8, 10, 12, null, 5, 6 );
    v.d = 13;                          check_s3( v, 8, 10, 12, 13, 5, 6 );
    v.setD( null );                    check_s3( v, 8, 10, 12, null, 5, 6 );
    v.setD( 14 );                      check_s3( v, 8, 10, 12, 14, 5, 6 );
   
    v.e = null;                        check_s3( v, 8, 10, 12, 14, null, 6 );
    v.e = 15;                          check_s3( v, 8, 10, 12, 14, 15, 6 );
    v.setE( null );                    check_s3( v, 8, 10, 12, 14, null, 6 );
    v.setE( 16 );                      check_s3( v, 8, 10, 12, 14, 16, 6 );
   
    v.f = null;                        check_s3( v, 8, 10, 12, 14, 16, null );
    v.f = 17;                          check_s3( v, 8, 10, 12, 14, 16, 17 );
    v.setF( null );                    check_s3( v, 8, 10, 12, 14, 16, null );
    v.setF( 18 );                      check_s3( v, 8, 10, 12, 14, 16, 18 );
  }
View Full Code Here

      "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() );
   
    assertEquals(
      "etch.tests.Inheritance$E1: a=1; b=2",
      new E1( 1, 2 ).toString() );
   
View Full Code Here

  /** @throws Exception */
  @Test
  public void test_s3() throws Exception
  {
    do_s3( new S3( 1, 2, 3, 4, 5, 6 ), new S3Compare() );
    do_s3( new S3( 9, 8, 7, 6, 5, 4 ), new S3Compare() );
  }
View Full Code Here

TOP

Related Classes of etch.tests.Inheritance.S3

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.