本文整理汇总了Java中org.pentaho.di.core.logging.KettleLogStore.getLogChannelInterfaceFactory方法的典型用法代码示例。如果您正苦于以下问题:Java KettleLogStore.getLogChannelInterfaceFactory方法的具体用法?Java KettleLogStore.getLogChannelInterfaceFactory怎么用?Java KettleLogStore.getLogChannelInterfaceFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.logging.KettleLogStore
的用法示例。
在下文中一共展示了KettleLogStore.getLogChannelInterfaceFactory方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StepMockHelper
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
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 );
}
示例2: setUp
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@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 );
}
示例3: beforeClass
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@BeforeClass
public static void beforeClass() throws Exception {
oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
CommonHBaseConnectionTest.setKettleLogFactoryWithMock();
}
示例4: beforeClass
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@BeforeClass
public static void beforeClass() throws Exception {
oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
setKettleLogFactoryWithMock();
addToCustomHbaseConfigFile();
}
示例5: setup
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setup() {
oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
MongoDbOutputMetaInjectionTest.setKettleLogFactoryWithMock();
setup( new MongoDbInputMeta() );
}
示例6: setup
import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setup() throws IllegalAccessException {
oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
setKettleLogFactoryWithMock();
setup( new MongoDbOutputMeta() );
}