Package etch.tests.Test1

Examples of etch.tests.Test1.Excp1


  private void testS3Import(String s, Object value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_S3, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S3 myS3 = (S3) vf.importCustomValue( sv );
    assertEquals( s, myS3.tipe );
    assertEquals( value, myS3.x );
 
View Full Code Here


 
  /** */
  @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

    Object[] stringObject = new Object []{Test1.STRING1, Test1.STRING2, Test1.STRING3, Test1.STRING4, Test1.STRING5};

    String msg = "Exception";
    int code = 500;
   
    StructValue sv = vf.exportCustomValue( new Excp1( "abc", 23 ) );
    sv.checkType( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_Excp1 );
    assertEquals( 2, sv.size() );
    assertEquals( "abc", sv.get( ValueFactoryTest1._mf_msg ) );
    assertEquals( 23, sv.get( ValueFactoryTest1._mf_code ) );
   
View Full Code Here

    int code = 500;
   
    StructValue sv = new StructValue( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_Excp1, vf );
    sv.put( ValueFactoryTest1._mf_msg, "def" );
    sv.put( ValueFactoryTest1._mf_code, 29 );
    Excp1 e1 = (Excp1) vf.importCustomValue( sv );
    assertEquals( "def", e1.msg );
    assertEquals( 29, e1.code );
    e1 = null;
   
    sv = new StructValue( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_Excp2, vf );
View Full Code Here

  @org.junit.Test
  public void method_blow1() throws Exception
  {
    try
    {
      svc.xresult = new Excp1( "foo", 2 );
      test.blow( "foo", 2 );
      fail( "blow did not throw" );
    }
    catch( Excp1 e )
    {
View Full Code Here

  @org.junit.Test
  public void method_blow2() throws Exception
  {
    try
    {
      svc.xresult = new Excp1( "bar", 3 );
      test.blow( "bar", 3 );
      fail( "blow did not throw" );
    }
    catch( Excp1 e )
    {
View Full Code Here

TOP

Related Classes of etch.tests.Test1.Excp1

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.