Package etch.tests.Test1

Examples of etch.tests.Test1.Excp5


    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


    assertArrayEquals( value, myS4.x );
  }
 
  private void testExcp5Export(String msg, int code, Object value)
  {
    StructValue sv = vf.exportCustomValue( new Excp5( msg, code, value ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp5 );
    assertEquals( 3, sv.size() );
    assertEquals( msg, sv.get( ValueFactoryTest1._mf_msg ) );
    assertEquals( code, sv.get( ValueFactoryTest1._mf_code ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );   
View Full Code Here

  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp5, vf );
    sv.put( ValueFactoryTest1._mf_msg, msg );
    sv.put( ValueFactoryTest1._mf_code, code );
    sv.put( ValueFactoryTest1._mf_x, value );   
    Excp5 e = (Excp5) vf.importCustomValue( sv );
    assertEquals( msg, e.msg );
    assertEquals( code, e.code );
    assertEquals( value, e.x );   
 
View Full Code Here

    assertEquals( value, e.x );   
 
 
  private void testExcp6Export(String msg, int code, Object[] value)
  {
    StructValue sv = vf.exportCustomValue( new Excp6( msg, code, value ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp6 );
    assertEquals( 3, sv.size() );
    assertEquals( msg, sv.get( ValueFactoryTest1._mf_msg ) );
    assertEquals( code, sv.get( ValueFactoryTest1._mf_code ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );   
View Full Code Here

  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp6, vf );
    sv.put( ValueFactoryTest1._mf_msg, msg );
    sv.put( ValueFactoryTest1._mf_code, code );
    sv.put( ValueFactoryTest1._mf_x, value );   
    Excp6 e = (Excp6) vf.importCustomValue( sv );
    assertEquals( msg, e.msg );
    assertEquals( code, e.code );
    assertArrayEquals( value, e.x );   
  }
View Full Code Here

 
  /** */
  @Test public void  testDist() {
    try
    {
      S1 a = new S1();
      S1 b = new S1();
      testServer.dist( a, b );
      testClient.dist( a, b );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

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

 
  /** */
  @Test public void  testS1Array() {
    try
    {
      S1 a[]  = null;
      testServer.p_S1_array( a );
      testClient.p_S1_array( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

 
  /** */
  @Test public void  testM14() {
    try
    {
      S1 b = null;
      testServer.m14(b);
      testClient.m14(b);
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist1() throws Exception
  {
    svc.xresult = Math.sqrt( 3 );
    S1 arg1 =  new S1( 1, 1, 1 );
    S1 arg2 = new S1( 0, 0, 0 );
    assertEquals( Math.sqrt( 3 ), test.dist( arg1, arg2 ) );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_dist,
      new Field[] { ValueFactoryTest1._mf_a, ValueFactoryTest1._mf_b },
      new Object[] { arg1, arg2 },
View Full Code Here

TOP

Related Classes of etch.tests.Test1.Excp5

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.