Examples of BookWrapper


Examples of org.exoplatform.ws.frameworks.json.BookWrapper

      assertTrue(jsonValue.isNull());
   }

   public void testBeanWrapper() throws Exception
   {
      BookWrapper bookWrapper = new BookWrapper();
      bookWrapper.setBook(junitBook);
      JsonValue jsonValue = new JsonGeneratorImpl().createJsonObject(bookWrapper);
      assertTrue(jsonValue.isObject());
      assertEquals(junitBook.getAuthor(), jsonValue.getElement("book").getElement("author").getStringValue());
      assertEquals(junitBook.getTitle(), jsonValue.getElement("book").getElement("title").getStringValue());
      assertEquals(junitBook.getPages(), jsonValue.getElement("book").getElement("pages").getIntValue());
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.BookWrapper

      assertTrue(jsonValue.isNull());
   }

   public void testBeanWrapper() throws Exception
   {
      BookWrapper bookWrapper = new BookWrapper();
      bookWrapper.setBook(junitBook);
      JsonValue jsonValue = new JsonGeneratorImpl().createJsonObject(bookWrapper);
      assertTrue(jsonValue.isObject());
      assertEquals(junitBook.getAuthor(), jsonValue.getElement("book").getElement("author").getStringValue());
      assertEquals(junitBook.getTitle(), jsonValue.getElement("book").getElement("title").getStringValue());
      assertEquals(junitBook.getPages(), jsonValue.getElement("book").getElement("pages").getIntValue());
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.