当前位置: 首页>>代码示例>>Java>>正文


Java KettleLogStore.getLogChannelInterfaceFactory方法代码示例

本文整理汇总了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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:17,代码来源:StepMockHelper.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:TransSplitterTest.java

示例3: beforeClass

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@BeforeClass
public static void beforeClass() throws Exception {
  oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
  CommonHBaseConnectionTest.setKettleLogFactoryWithMock();
}
 
开发者ID:pentaho,项目名称:pentaho-hadoop-shims,代码行数:6,代码来源:HBase11HBaseConnectionTest.java

示例4: beforeClass

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@BeforeClass
public static void beforeClass() throws Exception {
  oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
  setKettleLogFactoryWithMock();
  addToCustomHbaseConfigFile();
}
 
开发者ID:pentaho,项目名称:pentaho-hadoop-shims,代码行数:7,代码来源:CommonHBaseConnectionTest.java

示例5: setup

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setup() {
  oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
  MongoDbOutputMetaInjectionTest.setKettleLogFactoryWithMock();
  setup( new MongoDbInputMeta() );
}
 
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:7,代码来源:MongoDbInputMetaInjectionTest.java

示例6: setup

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setup() throws IllegalAccessException {
  oldLogChannelInterfaceFactory = KettleLogStore.getLogChannelInterfaceFactory();
  setKettleLogFactoryWithMock();
  setup( new MongoDbOutputMeta() );
}
 
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:7,代码来源:MongoDbOutputMetaInjectionTest.java


注:本文中的org.pentaho.di.core.logging.KettleLogStore.getLogChannelInterfaceFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。