use of org.neo4j.server.helpers.FunctionalTestHelper in project neo4j by neo4j.
the class StandaloneHaInfoFunctionalTest method testIsMasterOnStandaloneReturns403.
@Test
public void testIsMasterOnStandaloneReturns403() throws Exception {
FunctionalTestHelper helper = new FunctionalTestHelper(server);
JaxRsResponse response = RestRequest.req().get(getBasePath(helper) + IS_MASTER_PATH);
assertEquals(SC_FORBIDDEN, response.getStatus());
}
use of org.neo4j.server.helpers.FunctionalTestHelper in project neo4j by neo4j.
the class StandaloneHaInfoFunctionalTest method testIsSlaveOnStandaloneReturns403.
@Test
public void testIsSlaveOnStandaloneReturns403() throws Exception {
FunctionalTestHelper helper = new FunctionalTestHelper(server);
JaxRsResponse response = RestRequest.req().get(getBasePath(helper) + IS_SLAVE_PATH);
assertEquals(SC_FORBIDDEN, response.getStatus());
}
use of org.neo4j.server.helpers.FunctionalTestHelper in project neo4j by neo4j.
the class StandaloneHaInfoFunctionalTest method testDiscoveryListingOnStandaloneDoesNotContainHA.
@Test
public void testDiscoveryListingOnStandaloneDoesNotContainHA() throws Exception {
FunctionalTestHelper helper = new FunctionalTestHelper(server);
JaxRsResponse response = RestRequest.req().get(helper.managementUri());
Map<String, Object> map = JsonHelper.jsonToMap(response.getEntity());
assertEquals(2, ((Map) map.get("services")).size());
}
use of org.neo4j.server.helpers.FunctionalTestHelper in project neo4j by neo4j.
the class RemoveNodePropertiesIT method setupServer.
@BeforeClass
public static void setupServer() throws IOException {
functionalTestHelper = new FunctionalTestHelper(server());
helper = functionalTestHelper.getGraphDbHelper();
}
use of org.neo4j.server.helpers.FunctionalTestHelper in project neo4j by neo4j.
the class RemoveRelationshipIT method setupServer.
@BeforeClass
public static void setupServer() throws IOException {
functionalTestHelper = new FunctionalTestHelper(server());
helper = functionalTestHelper.getGraphDbHelper();
}
Aggregations