Exemple #1
0
 @Test
 public void toJSON() {
   logger.info("INIT toJSON()");
   try {
     logger.debug(JSONUtil.toJSON(ltusu));
   } catch (JSONUtilException e) {
     Assert.fail(e.toString());
   }
   logger.info("END toJSON()");
 }
Exemple #2
0
 @Test
 public void fromJSON() {
   logger.info("INIT fromJSON()");
   try {
     ltusu = (Ltusu) JSONUtil.fromJSON(JSONUtil.toJSON(ltusu), Ltusu.class);
     logger.debug(XMLUtil.toXML(ltusu));
   } catch (JSONUtilException jue) {
     Assert.fail(jue.toString());
   } catch (XMLUtilException xue) {
     Assert.fail(xue.toString());
   }
   logger.info("END fromJSON()");
 }
Exemple #3
0
 @Test
 public void fromJSON() {
   logger.info("INIT fromJSON()");
   try {
     cabParInt = (CabParInt) JSONUtil.fromJSON(JSONUtil.toJSON(cabParInt), CabParInt.class);
     logger.debug(XMLUtil.toXML(cabParInt));
   } catch (JSONUtilException jue) {
     Assert.fail(jue.toString());
   } catch (XMLUtilException xue) {
     Assert.fail(xue.toString());
   }
   logger.info("END fromJSON()");
 }