@Test public void getAppConfiguration() { StreamflowConfig responseConfig = resource().path("/api/config/app") .accept(MediaType.APPLICATION_JSON).get(StreamflowConfig.class); assertEquals("Response configuration should match the mocked configuration", streamflowConfig, responseConfig); }
@GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) public StreamflowConfig getAppConfiguration() { return streamflowConfig; }
ConfigurationResource { @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) public StreamflowConfig getAppConfiguration() { return streamflowConfig; } }
ConfigurationResource { @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) public StreamflowConfig getAppConfiguration() { return streamflowConfig; } @Inject  ConfigurationResource(StreamflowConfig streamflowConfig); }
ConfigurationResource { @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) public StreamflowConfig getAppConfiguration() { return streamflowConfig; } @Inject  ConfigurationResource(StreamflowConfig streamflowConfig); @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) StreamflowConfig getAppConfiguration(); }
ConfigurationResource { @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) public StreamflowConfig getAppConfiguration() { return streamflowConfig; } @Inject  ConfigurationResource(StreamflowConfig streamflowConfig); @GET @Path("/app") @Produces(MediaType.APPLICATION_JSON) StreamflowConfig getAppConfiguration();  }