@Test public void shouldIncrementMetricOnCreateRequest() { RedbeamsStartContext context = new RedbeamsStartContext(flowParameters, cloudContext, cloudCredential, databaseStack); RedbeamsEvent redbeamsEvent = (RedbeamsEvent) victim.createRequest(context); assertEquals(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), redbeamsEvent.selector()); }
@Override protected Selectable createRequest(RedbeamsStartContext context) { return new RedbeamsEvent(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), 0L); }
StartDatabaseServerFinishedAction extends AbstractRedbeamsStartAction<StartDatabaseServerSuccess> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new RedbeamsEvent(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), 0L); } }
StartDatabaseServerFinishedAction extends AbstractRedbeamsStartAction<StartDatabaseServerSuccess> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new RedbeamsEvent(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), 0L); } StartDatabaseServerFinishedAction(); }
StartDatabaseServerFinishedAction extends AbstractRedbeamsStartAction<StartDatabaseServerSuccess> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new RedbeamsEvent(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), 0L); } StartDatabaseServerFinishedAction();  }
StartDatabaseServerFinishedAction extends AbstractRedbeamsStartAction<StartDatabaseServerSuccess> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new RedbeamsEvent(RedbeamsStartEvent.REDBEAMS_START_FINISHED_EVENT.name(), 0L); } StartDatabaseServerFinishedAction();   }