use of org.pentaho.di.core.logging.SimpleLoggingObject in project pentaho-kettle by pentaho.
the class TableCompareIT method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
KettleEnvironment.init();
log = new SimpleLoggingObject("junit", LoggingObjectType.GENERAL, null);
databaseMeta = new DatabaseMeta("TableCompare", "Hypersonic", "JDBC", null, "mem:HSQLDB-JUNIT-LOGJOB", null, null, null);
}
use of org.pentaho.di.core.logging.SimpleLoggingObject in project pentaho-kettle by pentaho.
the class JobTrackerExecution method setUpBeforeClass.
@Before
public void setUpBeforeClass() throws Exception {
KettleEnvironment.init();
LoggingObjectInterface log = new SimpleLoggingObject("junit", LoggingObjectType.GENERAL, null);
File file = File.createTempFile(JobTrackerExecution.class.getSimpleName(), "");
file.deleteOnExit();
DatabaseMeta databaseMeta = new DatabaseMeta(NAME, "Hypersonic", "JDBC", null, "mem:HSQLDB-JUNIT-LOGJOB", null, null, null);
Database logDataBase = new Database(log, databaseMeta);
logDataBase.connect();
// run sql create for database
InputStream input = JobTrackerExecution.class.getClassLoader().getResourceAsStream(PKG + CREATE);
String sql = getStringFromInput(input);
logDataBase.execStatements(sql);
logDataBase.commit(true);
logDataBase.disconnect();
}
Aggregations