ApiDocumentationController apiDocumentationController = new ApiDocumentationController();
apiDocumentationController.setApiVersion("v1");
apiDocumentationController.setBaseControllerPackage(BASE_CONTROLLER_PACKAGE);
apiDocumentationController.setBasePath("http://localhost/swagger4spring-web-example");
ResourceListing documentation = apiDocumentationController.getResources(servletRequest);
assertNotNull(documentation);
assertEquals("v1", documentation.apiVersion());
assertEquals(3, documentation.apis().size());
for (ApiListingReference endPoint : ScalaToJavaUtil.toJavaList(documentation.apis())) {
assertTrue(END_POINT_PATHS.contains(endPoint.path()));
}
}