protected StaxPoiWorkbook() { openSheetsMap = new HashMap<String, StaxPoiSheet>(); this.log = KettleLogStore.getLogChannelInterfaceFactory().create( this ); }
public StepMockHelper( String stepName, Class<Meta> stepMetaClass, Class<Data> stepDataClass ) { originalLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory(); logChannelInterfaceFactory = mock( LogChannelInterfaceFactory.class ); logChannelInterface = mock( LogChannelInterface.class ); KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory ); stepMeta = mock( StepMeta.class ); when( stepMeta.getName() ).thenReturn( stepName ); stepDataInterface = mock( stepDataClass ); transMeta = mock( TransMeta.class ); when( transMeta.findStep( stepName ) ).thenReturn( stepMeta ); trans = mock( Trans.class ); initStepMetaInterface = mock( stepMetaClass ); initStepDataInterface = mock( stepDataClass ); processRowsStepDataInterface = mock( stepDataClass ); processRowsStepMetaInterface = mock( stepMetaClass ); }
@Before public void setUp() throws Exception { LogChannelInterfaceFactory logChannelInterfaceFactory = mock( LogChannelInterfaceFactory.class ); LogChannelInterface logChannelInterface = mock( LogChannelInterface.class ); oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory(); KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory ); when( logChannelInterfaceFactory.create( any(), any( LoggingObjectInterface.class ) ) ).thenReturn( logChannelInterface ); }
log = KettleLogStore.getLogChannelInterfaceFactory().create( this, trans );
public PoiWorkbook( String filename, String encoding, String password ) throws KettleException { this.filename = filename; this.encoding = encoding; this.log = KettleLogStore.getLogChannelInterfaceFactory().create( this ); try { FileObject fileObject = KettleVFS.getFileObject( filename );
this.log = KettleLogStore.getLogChannelInterfaceFactory().create( this ); } else { this.log = logInterface;
public ClusterTestDialog( Shell parent, NamedCluster namedCluster, RuntimeTester runtimeTester ) throws KettleException { super( parent ); this.namedCluster = namedCluster; this.runtimeTester = runtimeTester; props = getPropsUIInstance(); this.log = KettleLogStore.getLogChannelInterfaceFactory().create( namedCluster ); }