Exemplo n.º 1
0
 @Test
 @Ignore
 public void testBaseEntity() {
   JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
   List jsonList = previewPage.getJsonList();
   for (int i = 0; i < jsonList.size(); i++) {
     JsonJavaObject json = (JsonJavaObject) jsonList.get(i);
     Iterator<String> properties = json.getProperties();
     if (properties.hasNext() && Results[i][1] != null) {
       String property = properties.next();
       Object value = json.get(property);
       Assert.assertEquals(Results[i][0], property);
       Assert.assertEquals(
           "Match failed [" + i + "] name:" + property + " type:" + value.getClass(),
           Results[i][1],
           value);
     }
   }
 }