Package org.jsondoc.core.pojo

Examples of org.jsondoc.core.pojo.JSONDoc


    reflections = new Reflections(new ConfigurationBuilder()
      .filterInputsBy(filter)
      .setUrls(urls)
      );
   
    JSONDoc apiDoc = new JSONDoc(version, basePath);
    apiDoc.setApis(getApiDocs(reflections.getTypesAnnotatedWith(Api.class)));
    apiDoc.setObjects(getApiObjectDocs(reflections.getTypesAnnotatedWith(ApiObject.class)));
    return apiDoc;
  }
View Full Code Here


 
  private static Logger log = Logger.getLogger(JSONDocUtilsTest.class);
 
  @Test
  public void getJSONDoc() throws JsonGenerationException, JsonMappingException, IOException {
    JSONDoc jsondoc = JSONDocUtils.getApiDoc(version, basePath, Lists.newArrayList("org.jsondoc.core.util"));
    Assert.assertEquals(2, jsondoc.getApis().size());
    Assert.assertEquals(3, jsondoc.getObjects().size());
    log.debug(objectMapper.writeValueAsString(jsondoc));
  }
View Full Code Here

TOP

Related Classes of org.jsondoc.core.pojo.JSONDoc

Copyright © 2018 www.massapicom. 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.