Пример #1
0
 @Test
 public void toXML() {
   logger.info("INIT toXML()");
   try {
     logger.debug(XMLUtil.toXML(ltusu, true, true));
   } catch (XMLUtilException e) {
     Assert.fail(e.toString());
   }
   logger.info("END toXML()");
 }
Пример #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()");
 }
Пример #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()");
 }