@Override public ExecutionEnvironment createExecutionEnvironment() { lastEnv = new CollectionTestEnvironment(); return lastEnv; } };
CollectionTestEnvironment env = new CollectionTestEnvironment(); env.setAsContext();
@Before public void setupEnvironment() { TestEnvironment testEnvironment; switch(mode){ case CLUSTER: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().disableObjectReuse(); testEnvironment.setAsContext(); break; case CLUSTER_OBJECT_REUSE: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().enableObjectReuse(); testEnvironment.setAsContext(); break; case COLLECTION: new CollectionTestEnvironment().setAsContext(); break; } }
@Override public ExecutionEnvironment createExecutionEnvironment() { lastEnv = new CollectionTestEnvironment(); return lastEnv; } };
@Override public ExecutionEnvironment createExecutionEnvironment() { lastEnv = new CollectionTestEnvironment(); return lastEnv; } };
@Override public ExecutionEnvironment createExecutionEnvironment() { lastEnv = new CollectionTestEnvironment(); return lastEnv; } };
@Override public ExecutionEnvironment createExecutionEnvironment() { lastEnv = new CollectionTestEnvironment(); return lastEnv; } };
CollectionTestEnvironment env = new CollectionTestEnvironment(); env.setAsContext();
CollectionTestEnvironment env = new CollectionTestEnvironment(); env.setAsContext();
CollectionTestEnvironment env = new CollectionTestEnvironment(); env.setAsContext();
CollectionTestEnvironment env = new CollectionTestEnvironment(); env.setAsContext();
@Before public void setupEnvironment() { switch(mode){ case CLUSTER: new TestEnvironment(cluster, 4, false).setAsContext(); break; case CLUSTER_OBJECT_REUSE: new TestEnvironment(cluster, 4, true).setAsContext(); break; case COLLECTION: new CollectionTestEnvironment().setAsContext(); break; } }
@Before public void setupEnvironment() { TestEnvironment testEnvironment; switch(mode){ case CLUSTER: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().disableObjectReuse(); testEnvironment.setAsContext(); break; case CLUSTER_OBJECT_REUSE: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().enableObjectReuse(); testEnvironment.setAsContext(); break; case COLLECTION: new CollectionTestEnvironment().setAsContext(); break; } }
@Before public void setupEnvironment() { TestEnvironment testEnvironment; switch(mode){ case CLUSTER: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().disableObjectReuse(); testEnvironment.setAsContext(); break; case CLUSTER_OBJECT_REUSE: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().enableObjectReuse(); testEnvironment.setAsContext(); break; case COLLECTION: new CollectionTestEnvironment().setAsContext(); break; } }
@Before public void setupEnvironment() { TestEnvironment testEnvironment; switch(mode){ case CLUSTER: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().disableObjectReuse(); testEnvironment.setAsContext(); break; case CLUSTER_OBJECT_REUSE: // This only works because of the quirks we built in the TestEnvironment. // We should refactor this in the future!!! testEnvironment = miniClusterResource.getTestEnvironment(); testEnvironment.getConfig().enableObjectReuse(); testEnvironment.setAsContext(); break; case COLLECTION: new CollectionTestEnvironment().setAsContext(); break; } }