Search in sources :

Example 1 with MonetDBDatabaseMeta

use of org.pentaho.di.core.database.MonetDBDatabaseMeta in project pentaho-kettle by pentaho.

the class MonetDBBulkLoaderIT method testNoInput.

@Test
public void testNoInput() {
    String oneStepname = "Monet Bulk Loader";
    MonetDBBulkLoaderMeta meta = new MonetDBBulkLoaderMeta();
    DatabaseMeta database = new DatabaseMeta();
    database.setDatabaseInterface(new MonetDBDatabaseMeta());
    meta.setDefault();
    meta.setDatabaseMeta(database);
    TransMeta transMeta = TransTestFactory.generateTestTransformation(new Variables(), meta, oneStepname);
    try {
        TransTestFactory.executeTestTransformation(transMeta, oneStepname, new ArrayList<RowMetaAndData>());
    } catch (KettleException e) {
        // The Monet DB Bulk Loader step should finish quietly if no input rows
        fail();
    }
}
Also used : Variables(org.pentaho.di.core.variables.Variables) KettleException(org.pentaho.di.core.exception.KettleException) RowMetaAndData(org.pentaho.di.core.RowMetaAndData) TransMeta(org.pentaho.di.trans.TransMeta) MonetDBDatabaseMeta(org.pentaho.di.core.database.MonetDBDatabaseMeta) DatabaseMeta(org.pentaho.di.core.database.DatabaseMeta) MonetDBDatabaseMeta(org.pentaho.di.core.database.MonetDBDatabaseMeta) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 RowMetaAndData (org.pentaho.di.core.RowMetaAndData)1 DatabaseMeta (org.pentaho.di.core.database.DatabaseMeta)1 MonetDBDatabaseMeta (org.pentaho.di.core.database.MonetDBDatabaseMeta)1 KettleException (org.pentaho.di.core.exception.KettleException)1 Variables (org.pentaho.di.core.variables.Variables)1 TransMeta (org.pentaho.di.trans.TransMeta)1