use of org.pentaho.di.trans.step.BaseStepMeta in project pentaho-metaverse by pentaho.
the class TransMetaJsonSerializerTest method testGetBaseStepMetaFromStepMetaNull.
@Test
public void testGetBaseStepMetaFromStepMetaNull() throws Exception {
// BaseStepMeta should not be null, but its parent should be
BaseStepMeta baseStepMeta = serializer.getBaseStepMetaFromStepMeta(null);
assertNotNull(baseStepMeta);
assertNull(baseStepMeta.getParentStepMeta());
}
use of org.pentaho.di.trans.step.BaseStepMeta in project pentaho-metaverse by pentaho.
the class ExternalResourceStepAnalyzerTest method setUp.
@Before
public void setUp() throws Exception {
analyzer = spy(new ExternalResourceStepAnalyzer<BaseStepMeta>() {
@Override
public Set<Class<? extends BaseStepMeta>> getSupportedSteps() {
return null;
}
@Override
protected Set<StepField> getUsedFields(BaseStepMeta meta) {
Set<StepField> stepFields = new HashSet<>();
stepFields.add(new StepField("prevStep", "filename"));
return stepFields;
}
@Override
public IMetaverseNode createResourceNode(IExternalResourceInfo resource) throws MetaverseException {
return resourceNode;
}
@Override
public String getResourceInputNodeType() {
return "INPUT_TYPE";
}
@Override
public String getResourceOutputNodeType() {
return "OUTPUT_TYPE";
}
@Override
public boolean isOutput() {
return false;
}
@Override
public boolean isInput() {
return true;
}
});
when(analyzer.getMetaverseBuilder()).thenReturn(builder);
analyzer.descriptor = descriptor;
analyzer.parentTransMeta = parentTransMeta;
analyzer.parentStepMeta = parentStepMeta;
analyzer.setMetaverseObjectFactory(new MetaverseObjectFactory());
}
Aggregations