use of org.pentaho.metaverse.api.MetaverseComponentDescriptor in project pentaho-kettle by pentaho.
the class XMLOutputStepAnalyzerTest method setUp.
@Before
public void setUp() throws Exception {
analyzer = spy(new XMLOutputStepAnalyzer());
analyzer.setMetaverseBuilder(mockBuilder);
analyzer.setBaseStepMeta(meta);
analyzer.setRootNode(node);
analyzer.setParentTransMeta(mockTransMeta);
analyzer.setParentStepMeta(parentStepMeta);
descriptor = new MetaverseComponentDescriptor("test", DictionaryConst.NODE_TYPE_TRANS_STEP, mockNamespace);
analyzer.setDescriptor(descriptor);
analyzer.setObjectFactory(metaverseObjectFactory);
when(mockXMLOutput.getStepDataInterface()).thenReturn(data);
when(mockXMLOutput.getStepMeta()).thenReturn(parentStepMeta);
when(meta.getParentStepMeta()).thenReturn(parentStepMeta);
when(parentStepMeta.getStepMetaInterface()).thenReturn(meta);
when(parentStepMeta.getParentTransMeta()).thenReturn(mockTransMeta);
when(parentStepMeta.getName()).thenReturn("test");
when(parentStepMeta.getStepID()).thenReturn("XmlOutputStep");
}
Aggregations