TestEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().enableObjectReuse();
ExecutionEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().disableObjectReuse();
Assert.fail("Error while calling the test program: " + e.getMessage()); } finally { miniClusterResource.getTestEnvironment().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; } }
TestEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().enableObjectReuse();
ExecutionEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().disableObjectReuse();
TestEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().enableObjectReuse();
ExecutionEnvironment env = miniClusterResource.getTestEnvironment(); env.getConfig().disableObjectReuse();
Assert.fail("Error while calling the test program: " + e.getMessage()); } finally { miniClusterResource.getTestEnvironment().setAsContext();
Assert.fail("Error while calling the test program: " + e.getMessage()); } finally { miniClusterResource.getTestEnvironment().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; } }
@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; } }