Search in sources :

Example 1 with CommunityServerBuilder

use of org.neo4j.server.helpers.CommunityServerBuilder in project neo4j by neo4j.

the class NeoServerJAXRSIT method shouldMakeJAXRSClassesAvailableViaHTTP.

@Test
public void shouldMakeJAXRSClassesAvailableViaHTTP() throws Exception {
    CommunityServerBuilder builder = CommunityServerBuilder.server();
    server = ServerHelper.createNonPersistentServer(builder);
    FunctionalTestHelper functionalTestHelper = new FunctionalTestHelper(server);
    JaxRsResponse response = new RestRequest().get(functionalTestHelper.managementUri());
    assertEquals(200, response.getStatus());
    response.close();
}
Also used : RestRequest(org.neo4j.server.rest.RestRequest) CommunityServerBuilder(org.neo4j.server.helpers.CommunityServerBuilder) FunctionalTestHelper(org.neo4j.server.helpers.FunctionalTestHelper) JaxRsResponse(org.neo4j.server.rest.JaxRsResponse) Test(org.junit.Test)

Aggregations

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