Package etch.tests.Test1

Examples of etch.tests.Test1.E1


  @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


    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_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_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_etch_tests_Test1_Excp2, vf );
View Full Code Here

    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp1 );
    assertEquals( 2, sv.size() );
    assertEquals( "abc", sv.get( ValueFactoryTest1._mf_msg ) );
    assertEquals( 23, sv.get( ValueFactoryTest1._mf_code ) );
   
    sv = vf.exportCustomValue( new Excp2() );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp2 );
    assertEquals( 0, sv.size() );
   
    sv = vf.exportCustomValue( new Excp3() );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp3 );
View Full Code Here

    assertEquals( "def", e1.msg );
    assertEquals( 29, e1.code );
    e1 = null;
   
    sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp2, vf );
    Excp2 e2 = (Excp2) vf.importCustomValue( sv );
    assertNotNull( e2 );
    e2 = null;
   
    sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp3, vf );
    Excp3 e3 = (Excp3) vf.importCustomValue( sv );
View Full Code Here

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

   
    sv = vf.exportCustomValue( new Excp2() );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_Excp2 );
    assertEquals( 0, sv.size() );
   
    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 );
View Full Code Here

    Excp2 e2 = (Excp2) vf.importCustomValue( sv );
    assertNotNull( e2 );
    e2 = null;
   
    sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_Excp3, vf );
    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 );
View Full Code Here

  @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

TOP

Related Classes of etch.tests.Test1.E1

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.