@Test public void createRequestShouldReturnStopDatabaseServerRequest() { RedbeamsStopContext context = new RedbeamsStopContext(flowParameters, cloudContext, cloudCredential, databaseStack); StopDatabaseServerRequest stopDatabaseServerRequest = (StopDatabaseServerRequest) victim.createRequest(context); assertEquals(cloudContext, stopDatabaseServerRequest.getCloudContext()); assertEquals(cloudCredential, stopDatabaseServerRequest.getCloudCredential()); }
@Override protected Selectable createRequest(RedbeamsStopContext context) { return new StopDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStopContext context) { return new StopDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStopContext context) { return new StopDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StopDatabaseServerAction(); }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStopContext context) { return new StopDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StopDatabaseServerAction();  }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStopContext context) { return new StopDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StopDatabaseServerAction();   }