Examples of checkType()


Examples of org.apache.etch.bindings.java.msg.StructValue.checkType()

  @Test
  public void exportCustomValue_RuntimeException_msg() throws Exception
  {
    Exception value = new NullPointerException( "foo != null" );
    StructValue sv = vf.exportCustomValue( value );
    sv.checkType( vf.getType( "_Etch_RuntimeException" ) );
    assertEquals( 1, sv.size() );
    assertEquals( "java.lang.NullPointerException: foo != null",
      sv.get( DefaultValueFactory._mf_msg ) );
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.