Package org.apache.etch.tests.Test1

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


  @org.junit.Test
  public void method_beets3() throws Exception
  {
    try
    {
      svc.xresult = new Excp4();
      test.beets( E1.C );
      fail( "beets did not throw" );
    }
    catch ( Excp4 e )
    {
View Full Code Here


   
    sv = vf.exportCustomValue( new Excp3() );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp3 );
    assertEquals( 0, sv.size() );
   
    sv = vf.exportCustomValue( new Excp4() );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp4 );
    assertEquals( 0, sv.size() );
   
    // Import exception with object as param
    testExcp5Export(msg, code, Test1.BOOL2);
View Full Code Here

    Excp3 e3 = (Excp3) vf.importCustomValue( sv );
    assertNotNull( e3 );
    e3 = null;
   
    sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp4, vf );
    Excp4 e4 = (Excp4) vf.importCustomValue( sv );
    assertNotNull( e4 );
    e4 = null;
   
    // Import exception with object as param
    testExcp5Import(msg, code, Test1.BOOL2);
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.Excp4

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.