@Test public void testMessageForProto() { for (final ReefServiceProtos.JobStatusProto status : allStatuses) { Assert.assertEquals(status.getState().name(), DriverStatusHTTPHandler.getMessageForStatus(status)); } }
static String getMessageForStatus(final ReefServiceProtos.JobStatusProto status) { return status.getState().name(); }
DriverStatusHTTPHandler implements HttpHandler, JobStatusHandler { static String getMessageForStatus(final ReefServiceProtos.JobStatusProto status) { return status.getState().name(); } }
DriverStatusHTTPHandler implements HttpHandler, JobStatusHandler { static String getMessageForStatus(final ReefServiceProtos.JobStatusProto status) { return status.getState().name(); } @Inject  DriverStatusHTTPHandler(final Clock clock,
                          @Parameter(HTTPStatusNumberOfRetries.class) final int maxNumberOfRetries,
                          @Parameter(HTTPStatusAlarmInterval.class) final int alarmInterval); }
DriverStatusHTTPHandler implements HttpHandler, JobStatusHandler { static String getMessageForStatus(final ReefServiceProtos.JobStatusProto status) { return status.getState().name(); } @Inject  DriverStatusHTTPHandler(final Clock clock,
                          @Parameter(HTTPStatusNumberOfRetries.class) final int maxNumberOfRetries,
                          @Parameter(HTTPStatusAlarmInterval.class) final int alarmInterval); @Override String getUriSpecification(); @Override void setUriSpecification(final String newUriSpecification); @Override void onHttpRequest(final ParsedHttpRequest parsedHttpRequest, final HttpServletResponse response); @Override void onNext(final ReefServiceProtos.JobStatusProto value); @Override ReefServiceProtos.JobStatusProto getLastStatus(); @Override String toString(); }
DriverStatusHTTPHandler implements HttpHandler, JobStatusHandler { static String getMessageForStatus(final ReefServiceProtos.JobStatusProto status) { return status.getState().name(); } @Inject  DriverStatusHTTPHandler(final Clock clock,
                          @Parameter(HTTPStatusNumberOfRetries.class) final int maxNumberOfRetries,
                          @Parameter(HTTPStatusAlarmInterval.class) final int alarmInterval); @Override String getUriSpecification(); @Override void setUriSpecification(final String newUriSpecification); @Override void onHttpRequest(final ParsedHttpRequest parsedHttpRequest, final HttpServletResponse response); @Override void onNext(final ReefServiceProtos.JobStatusProto value); @Override ReefServiceProtos.JobStatusProto getLastStatus(); @Override String toString();  }