ResourceContext { public ExecutionContext getExecutionContext() { return executionContext; } ResourceContext(ExecutionContext executionContext, String keyPrefix); void changeResource(Resource resource); Resource consumeResource(); boolean hasChanged(); boolean containsResource(); Resource getResource(); void setResource(Resource resource); void setCurrentIndex(int index); void incrementIndex(); int getCurrentIndex(); ExecutionContext getExecutionContext(); void setRowsToSkip(int rowsToSkip); void clear(); static final String RESOURCE_KEY; static final String HAS_CHANGED_KEY; static final String CURRENT_INDEX_KEY; }
@Test public void testGetExecutionContext() throws Exception { ExecutionContext actual = context.getExecutionContext(); Assert.assertEquals(executionContext, actual); }