@Override public DeployExecutionDao getDeployExecutionDao() { return delegate.getDeployExecutionDao(); }
@Override public DeployExecutionDao getDeployExecutionDao() { return delegate.getDeployExecutionDao(); }
@Before public void setup() throws Exception { DbDeployerAppContext context = getAppContext.valueOf(1); context.setupEnvInfra(); this.logicalSchema1 = context.getEnvironment().getSchemas().getFirst().getName(); // pick one from the environment at random as our logical schema so that we can test the retrieval logic this.logicalSchema2 = "MYSCHEMA2"; // this is just for testing in this DAO, no need to tie to the actual logical schema this.testSchema = context.getEnvironment().getPhysicalSchema(this.logicalSchema1); this.platform = context.getEnvironment().getPlatform(); this.conn = context.getDataSource().getConnection(); this.jdbcHelper = ((AbstractSqlExecutor) context.getSqlExecutor()).createJdbcHelper(context.getDataSource()); this.artifactDeployerDao = (SameSchemaChangeAuditDao) ((DbDeployerAppContextImpl) context).getArtifactDeployerDao(); this.deployExecutionDao = (SameSchemaDeployExecutionDao) context.getDeployExecutionDao(); }
DeployExecution execution1 = context1.getDeployExecutionDao().getLatestDeployExecution(schema); verifyExecution1(execution1); context2.setupEnvInfra().deploy(args2); this.validateStep2(ds, new JdbcHelper(), schemaPrefix); DeployExecution execution2 = context2.getDeployExecutionDao().getLatestDeployExecution(schema); verifyExecution2(execution2); MutableList<DeployExecution> executions = context2.getDeployExecutionDao().getDeployExecutions(schema).toSortedListBy(new Function<DeployExecution, Long>() { @Override public Long valueOf(DeployExecution deployExecution) {
DeployExecution execution1 = context1.getDeployExecutionDao().getLatestDeployExecution(schema); verifyExecution1(execution1); context2.setupEnvInfra().deploy(args2); this.validateStep2(ds, new JdbcHelper(), schemaPrefix); DeployExecution execution2 = context2.getDeployExecutionDao().getLatestDeployExecution(schema); verifyExecution2(execution2); MutableList<DeployExecution> executions = context2.getDeployExecutionDao().getDeployExecutions(schema).toSortedListBy(new Function<DeployExecution, Long>() { @Override public Long valueOf(DeployExecution deployExecution) {
MutableList<DeployExecution> executions = dbDeployerAppContext.getDeployExecutionDao().getDeployExecutions(schema1).toSortedListBy(new Function<DeployExecution, Long>() { @Override public Long valueOf(DeployExecution deployExecution) { DeployExecution execution4 = dbDeployerAppContext.getDeployExecutionDao().getLatestDeployExecution(schema1); verifyExecution1(executions.get(0)); verifyExecution1a(executions.get(1));
MutableList<DeployExecution> executions = dbDeployerAppContext.getDeployExecutionDao().getDeployExecutions(schema1).toSortedListBy(new Function<DeployExecution, Long>() { @Override public Long valueOf(DeployExecution deployExecution) { DeployExecution execution4 = dbDeployerAppContext.getDeployExecutionDao().getLatestDeployExecution(schema1); verifyExecution1(executions.get(0)); verifyExecution1a(executions.get(1));