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


Java KettleLogStore.setLogChannelInterfaceFactory方法代码示例

本文整理汇总了Java中org.pentaho.di.core.logging.KettleLogStore.setLogChannelInterfaceFactory方法的典型用法代码示例。如果您正苦于以下问题:Java KettleLogStore.setLogChannelInterfaceFactory方法的具体用法?Java KettleLogStore.setLogChannelInterfaceFactory怎么用?Java KettleLogStore.setLogChannelInterfaceFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.core.logging.KettleLogStore的用法示例。


在下文中一共展示了KettleLogStore.setLogChannelInterfaceFactory方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: setKettleLogFactoryWithMock

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
/**
 * set mock for log channel factory for skipping npe in tests
 */
public static void setKettleLogFactoryWithMock() {
  LogChannelInterfaceFactory logChannelInterfaceFactory = mock( LogChannelInterfaceFactory.class );
  logChannelInterface = mock( LogChannelInterface.class );
  when( logChannelInterfaceFactory.create( any() ) ).thenReturn( logChannelInterface );
  KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-hadoop-shims,代码行数:10,代码来源:CommonHBaseConnectionTest.java

示例3: before

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before public void before() throws MongoDbException {
  MockitoAnnotations.initMocks( this );
  MongoWrapperUtil.setMongoWrapperClientFactory( mongoClientWrapperFactory );
  when( mongoClientWrapperFactory
      .createMongoClientWrapper( any( MongoProperties.class ), any( MongoUtilLogger.class ) ) )
      .thenReturn( mongoClientWrapper );

  when( stepMeta.getName() ).thenReturn( "stepMetaName" );
  when( transMeta.findStep( anyString() ) ).thenReturn( stepMeta );
  when( logChannelFactory.create( any( BaseStep.class ), any( Trans.class ) ) ).thenReturn( mockLog );
  KettleLogStore.setLogChannelInterfaceFactory( logChannelFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:13,代码来源:BaseMongoDbStepTest.java

示例4: setKettleLogFactoryWithMock

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
public static void setKettleLogFactoryWithMock() {
  LogChannelInterfaceFactory logChannelInterfaceFactory = mock( LogChannelInterfaceFactory.class );
  LogChannelInterface logChannelInterface = mock( LogChannelInterface.class );
  when( logChannelInterfaceFactory.create( any() ) ).thenReturn(
          logChannelInterface );
  KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:8,代码来源:MongoDbOutputMetaInjectionTest.java

示例5: 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 );
  KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory );
  when( logChannelInterfaceFactory.create( any(), any( LoggingObjectInterface.class ) ) ).thenReturn(
      logChannelInterface );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:9,代码来源:DimensionLookupMetaTest.java

示例6: 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

示例7: setUp

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  meta = new StuffStreamMeta();
  KettleLogStore.setLogChannelInterfaceFactory( logChannelFactory );
  when( logChannelFactory.create( any(), any() ) ).thenReturn( logChannel );
  when( logChannelFactory.create( any() ) ).thenReturn( logChannel );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:BaseStreamStepMetaTest.java

示例8: tearDown

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@AfterClass
public static void tearDown() {
  KettleLogStore.setLogChannelInterfaceFactory( oldLogChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-hadoop-shims,代码行数:5,代码来源:HBase11HBaseConnectionTest.java

示例9: tearDown

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@After
public void tearDown() {
  KettleLogStore.setLogChannelInterfaceFactory( oldLogChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:5,代码来源:MongoDbInputMetaInjectionTest.java

示例10: setUp

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  KettleLogStore.setLogChannelInterfaceFactory( logChannelFactory );
  Mockito.when( logChannelFactory.create( any(), any() ) ).thenReturn( logChannel );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:TransWebSocketEngineAdapterTest.java

示例11: setUp

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  KettleLogStore.setLogChannelInterfaceFactory( this.logChannelFactory );
  Mockito.when( this.logChannelFactory.create( any(), any() ) ).thenReturn( this.logChannel );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:SubtransExecutorTest.java

示例12: cleanUp

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
public void cleanUp() {
  KettleLogStore.setLogChannelInterfaceFactory( originalLogChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:StepMockHelper.java

示例13: setKettleLogFactoryWithMock

import org.pentaho.di.core.logging.KettleLogStore; //导入方法依赖的package包/类
private void setKettleLogFactoryWithMock() {
  LogChannelInterfaceFactory logChannelInterfaceFactory = mock( LogChannelInterfaceFactory.class );
  logChannelInterface = mock( LogChannelInterface.class );
  when( logChannelInterfaceFactory.create( any() ) ).thenReturn( logChannelInterface );
  KettleLogStore.setLogChannelInterfaceFactory( logChannelInterfaceFactory );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:OpenMappingExtensionTest.java


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