Search in sources :

Example 1 with CommunityWebContainerBuilder

use of org.neo4j.doc.server.helpers.CommunityWebContainerBuilder in project neo4j-documentation by neo4j.

the class NeoServerJAXRSDocIT method shouldMakeJAXRSClassesAvailableViaHTTP.

@Test
public void shouldMakeJAXRSClassesAvailableViaHTTP() throws Exception {
    CommunityWebContainerBuilder builder = CommunityWebContainerBuilder.builder();
    webContainer = WebContainerHelper.createContainer(builder, folder, true);
    FunctionalTestHelper functionalTestHelper = new FunctionalTestHelper(webContainer);
    JaxRsResponse response = new RestRequest().get(functionalTestHelper.baseUri().toASCIIString());
    assertEquals(200, response.getStatus());
}
Also used : CommunityWebContainerBuilder(org.neo4j.doc.server.helpers.CommunityWebContainerBuilder) RestRequest(org.neo4j.doc.server.rest.RestRequest) FunctionalTestHelper(org.neo4j.doc.server.helpers.FunctionalTestHelper) JaxRsResponse(org.neo4j.doc.server.rest.JaxRsResponse) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CommunityWebContainerBuilder (org.neo4j.doc.server.helpers.CommunityWebContainerBuilder)1 FunctionalTestHelper (org.neo4j.doc.server.helpers.FunctionalTestHelper)1 JaxRsResponse (org.neo4j.doc.server.rest.JaxRsResponse)1 RestRequest (org.neo4j.doc.server.rest.RestRequest)1