2017-07-19 15:23:15 -04:00
|
|
|
package testutil;
|
|
|
|
|
|
|
|
import static table.FunctionTable.resetFunctionTable;
|
|
|
|
|
2017-11-12 09:42:25 -05:00
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.Before;
|
2017-07-19 15:23:15 -04:00
|
|
|
|
|
|
|
import table.ExecutionContext;
|
|
|
|
|
|
|
|
public abstract class SymbolAndFunctionCleaner {
|
|
|
|
|
|
|
|
protected ExecutionContext executionContext;
|
|
|
|
|
|
|
|
public SymbolAndFunctionCleaner() {
|
|
|
|
this.executionContext = ExecutionContext.getInstance();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Before
|
|
|
|
public final void setUp() {
|
|
|
|
executionContext.clearContext();
|
|
|
|
resetFunctionTable();
|
|
|
|
additionalSetUp();
|
|
|
|
}
|
|
|
|
|
|
|
|
@After
|
|
|
|
public final void tearDown() {
|
|
|
|
executionContext.clearContext();
|
|
|
|
resetFunctionTable();
|
|
|
|
additionalTearDown();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void additionalSetUp() {}
|
|
|
|
|
|
|
|
public void additionalTearDown() {}
|
|
|
|
|
|
|
|
}
|