Package org.scotlandyard.engine.json

Examples of org.scotlandyard.engine.json.ExceptionJsonContainer.toJson()


  @Test  //TODO add description of what the test should do
  public void testNewExceptionJsonContainer()  {
    final Exception exp = new Exception("My Error");
    final ExceptionJsonContainer ejc = new ExceptionJsonContainer(exp);
    final String json = ejc.toJson();
   
    assertTrue("test json",json.contains("My Error"));
   
    final ExceptionJsonContainer conv = ejc.fromJson(json);
    assertEquals("test cast conversion 1",conv.message,"My Error");
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.