@Test public void createRequestShouldReturnStartDatabaseServerRequest() { RedbeamsStartContext context = new RedbeamsStartContext(flowParameters, cloudContext, cloudCredential, dbStack); StartDatabaseServerRequest startDatabaseServerRequest = (StartDatabaseServerRequest) victim.createRequest(context); assertEquals(cloudContext, startDatabaseServerRequest.getCloudContext()); assertEquals(cloudCredential, startDatabaseServerRequest.getCloudCredential()); assertEquals(dbStack, startDatabaseServerRequest.getDbStack()); }
@Override protected Selectable createRequest(RedbeamsStartContext context) { return new StartDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); }
StartDatabaseServerAction extends AbstractRedbeamsStartAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new StartDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } }
StartDatabaseServerAction extends AbstractRedbeamsStartAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new StartDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StartDatabaseServerAction(); }
StartDatabaseServerAction extends AbstractRedbeamsStartAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new StartDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StartDatabaseServerAction();  }
StartDatabaseServerAction extends AbstractRedbeamsStartAction<RedbeamsEvent> { @Override protected Selectable createRequest(RedbeamsStartContext context) { return new StartDatabaseServerRequest(context.getCloudContext(), context.getCloudCredential(), context.getDatabaseStack()); } StartDatabaseServerAction();   }