Search in sources :

Example 6 with LineageRepository

use of org.pentaho.metaverse.impl.model.kettle.LineageRepository in project pentaho-metaverse by pentaho.

the class TableOutputStepMetaJsonSerializerTest method setUp.

@Before
public void setUp() throws Exception {
    repo = new LineageRepository();
    serializer = new TableOutputStepMetaJsonSerializer(TableOutputMeta.class, repo);
    meta = spy(new TableOutputMeta());
}
Also used : LineageRepository(org.pentaho.metaverse.impl.model.kettle.LineageRepository) TableOutputMeta(org.pentaho.di.trans.steps.tableoutput.TableOutputMeta) Before(org.junit.Before)

Example 7 with LineageRepository

use of org.pentaho.metaverse.impl.model.kettle.LineageRepository in project pentaho-metaverse by pentaho.

the class AbstractStepMetaJsonSerializerTest method setUp.

@Before
public void setUp() throws Exception {
    repo = new LineageRepository();
    serializer = new BaseStepMetaJsonSerializer(BaseStepMeta.class, repo);
    spyMeta = spy(new BaseStepMeta());
    spyParent = spy(new StepMeta());
    spyParentTrans = spy(new TransMeta());
    when(spyMeta.getParentStepMeta()).thenReturn(spyParent);
    when(spyParent.getName()).thenReturn(STEP_META_NAME);
}
Also used : TransMeta(org.pentaho.di.trans.TransMeta) DummyTransMeta(org.pentaho.di.trans.steps.dummytrans.DummyTransMeta) LineageRepository(org.pentaho.metaverse.impl.model.kettle.LineageRepository) BaseStepMeta(org.pentaho.di.trans.step.BaseStepMeta) StepMeta(org.pentaho.di.trans.step.StepMeta) BaseStepMeta(org.pentaho.di.trans.step.BaseStepMeta) Before(org.junit.Before)

Aggregations

LineageRepository (org.pentaho.metaverse.impl.model.kettle.LineageRepository)7 ObjectId (org.pentaho.di.repository.ObjectId)4 StringObjectId (org.pentaho.di.repository.StringObjectId)4 Before (org.junit.Before)3 BaseStepMeta (org.pentaho.di.trans.step.BaseStepMeta)3 StepMeta (org.pentaho.di.trans.step.StepMeta)3 Map (java.util.Map)2 KettleException (org.pentaho.di.core.exception.KettleException)2 TransMeta (org.pentaho.di.trans.TransMeta)2 DummyTransMeta (org.pentaho.di.trans.steps.dummytrans.DummyTransMeta)2 Job (org.pentaho.di.job.Job)1 JobEntryBase (org.pentaho.di.job.entry.JobEntryBase)1 JobEntryCopy (org.pentaho.di.job.entry.JobEntryCopy)1 JobEntryInterface (org.pentaho.di.job.entry.JobEntryInterface)1 TableOutputMeta (org.pentaho.di.trans.steps.tableoutput.TableOutputMeta)1