Package org.apache.etch.tests.Test1

Examples of org.apache.etch.tests.Test1.S4


 
  /** */
  @Test public void  testObjectStructArray() {
    try
    {
      S4 a  = null;
      testServer.p_object_struct_array( a );
      testClient.p_object_struct_array( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here


    assertEquals( value, myS3.x );
 
 
  private void testS4Export(String s, Object[] value)
  {
    StructValue sv = vf.exportCustomValue( new S4( s,value ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_S4 );
    assertEquals( 2, sv.size() );
    assertEquals( s, sv.get( ValueFactoryTest1._mf_tipe ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );
  }
View Full Code Here

  private void testS4Import(String s, Object[] value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_S4, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S4 myS4 = (S4) vf.importCustomValue( sv );
    assertEquals( s, myS4.tipe );
    assertArrayEquals( value, myS4.x );
  }
View Full Code Here

  @org.junit.Test
  public void test_S2_export()
  {
    S1 a = new S1( 21, 22, 23 );
    S1 b = new S1( 31, 32, 33 );
    E1 c = E1.A;
   
    StructValue sv = vf.exportCustomValue( new S2( a, b, c ) );
    sv.checkType( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S2 );
    assertEquals( 3, sv.size() );
   
View Full Code Here

 
  private void testEnumImport( E1 e, Type t, Field f )
  {
    StructValue sv = new StructValue( t, vf );
    sv.putf, true );
    E1 a = (E1) vf.importCustomValue( sv );
    assertSame( e, a );
  }
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_E1_null() throws Exception
  {
    E1 a = null;
    svc.xresult = a;
    E1 r = test.p_E1( a );
    assertObjectEquals( a, r );
    check( What.CALL,
      ValueFactoryTest1._mt_org_apache_etch_tests_Test1_p_E1,
      new Field[] {},
      new Object[] {},
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_E1() throws Exception
  {
    E1 a = E1.A;
    svc.xresult = a;
    E1 r = test.p_E1( a );
    assertObjectEquals( a, r );
    check( What.CALL,
      ValueFactoryTest1._mt_org_apache_etch_tests_Test1_p_E1,
      new Field[] { ValueFactoryTest1._mf_a },
      new Object[] { a },
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_E1_array() throws Exception
  {
    E1 x = E1.A;
    E1 y = E1.B;
    E1[] a = { x, y };
    svc.xresult = a;
    E1[] r = test.p_E1_array( a );
    assertObjectEquals( a, r );
    check( What.CALL,
View Full Code Here

  /** */
  @Test public void  testTrans() {
    try
    {
      Integer i = new Integer(5);
      E1 enumA = E1.A;
      testServer.trans( enumA,i  );
      testClient.trans( enumA,i  );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

 
  /** */
  @Test public void  testE1() {
    try
    {
      E1 a  = null;
      testServer.p_E1( a );
      testClient.p_E1( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

TOP

Related Classes of org.apache.etch.tests.Test1.S4

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.