GraphConfigurationServiceV2 implements IGraphConfigurationServiceV2 { @Override public Response getDescription() { return Response.ok(graphFactory.getGraph().getDescription()) .header(GAFFER_MEDIA_TYPE_HEADER, GAFFER_MEDIA_TYPE) .build(); } GraphConfigurationServiceV2(); static void initialise(); @Override Response getSchema(); @Override Response getFilterFunction(); @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Need to wrap all runtime exceptions before they are given to the user") @Override Response getFilterFunction(final String inputClass); @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Need to wrap all runtime exceptions before they are given to the user") @Override Response getSerialisedFields(final String className); @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Need to wrap all runtime exceptions before they are given to the user") @Override Response getSerialisedFieldClasses(final String className); @Override Response getDescription(); @Override Response getTransformFunctions(); @Override Response getStoreTraits(); @Override Response getElementGenerators(); @Override Response getObjectGenerators();  }
@Test public void shouldReturnDescription() { final int status = service.getDescription().getStatus(); final String description = service.getDescription().getEntity().toString(); assertEquals(200, status); assertEquals("test graph", description); }