org.etlunit.TestContext Maven / Gradle / Ivy
package org.etlunit;
import org.etlunit.parser.ETLTestClass;
import org.etlunit.parser.ETLTestMethod;
import org.etlunit.parser.ETLTestValueObject;
import org.etlunit.util.CommandLine;
import java.io.IOException;
import java.util.Map;
public interface TestContext extends CommandLineSwitches
{
Map getTestAttributeMap();
Object getTestAttribute(String name);
void setTestAttribute(String name, Object val);
Map getClassAttributeMap();
Object getClassAttribute(String name);
void setClassAttribute(String name, Object val);
Map getSystemAttributeMap();
Object getSystemAttribute(String name);
void setSystemAttribute(String name, Object val);
CommandLine getCommandLine();
void executeOperation(String operationName, ETLTestValueObject operands) throws Exception;
void executeOperation(String operationName, String operands) throws Exception;
ETLTestValueObject parseOperands(String map);
void writeToProcessLog(byte[] bytes, int offset, int length) throws IOException;
void writeToProcessLog(String msg) throws IOException;
void writeToProcessLog(String[] msgs) throws IOException;
void testClassRunning(ETLTestClass itc);
void testMethodRunning(ETLTestMethod itm) throws TestExecutionError;
void testMethodCompleted();
void testFailed();
void testErrored();
void dispose();
boolean checkRuntimeOption(CommandLine.Switch name);
boolean checkRuntimeOption(CommandLine.Switch name, boolean optionDefault, boolean flagDefault);
String getRuntimeOption(CommandLine.Switch name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy