Search in sources :

Example 1 with LogChannelInterfaceFactory

use of org.pentaho.di.core.logging.LogChannelInterfaceFactory in project pentaho-kettle by pentaho.

the class TransSplitterTest method setUp.

@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);
}
Also used : LogChannelInterfaceFactory(org.pentaho.di.core.logging.LogChannelInterfaceFactory) LoggingObjectInterface(org.pentaho.di.core.logging.LoggingObjectInterface) LogChannelInterface(org.pentaho.di.core.logging.LogChannelInterface) Before(org.junit.Before)

Example 2 with LogChannelInterfaceFactory

use of org.pentaho.di.core.logging.LogChannelInterfaceFactory in project pentaho-kettle by pentaho.

the class DimensionLookupMetaTest method setUp.

@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);
}
Also used : LogChannelInterfaceFactory(org.pentaho.di.core.logging.LogChannelInterfaceFactory) LoggingObjectInterface(org.pentaho.di.core.logging.LoggingObjectInterface) LogChannelInterface(org.pentaho.di.core.logging.LogChannelInterface) Before(org.junit.Before)

Example 3 with LogChannelInterfaceFactory

use of org.pentaho.di.core.logging.LogChannelInterfaceFactory in project pentaho-kettle by pentaho.

the class OpenMappingExtensionTest method setKettleLogFactoryWithMock.

private void setKettleLogFactoryWithMock() {
    LogChannelInterfaceFactory logChannelInterfaceFactory = mock(LogChannelInterfaceFactory.class);
    logChannelInterface = mock(LogChannelInterface.class);
    when(logChannelInterfaceFactory.create(any())).thenReturn(logChannelInterface);
    KettleLogStore.setLogChannelInterfaceFactory(logChannelInterfaceFactory);
}
Also used : LogChannelInterfaceFactory(org.pentaho.di.core.logging.LogChannelInterfaceFactory) LogChannelInterface(org.pentaho.di.core.logging.LogChannelInterface)

Aggregations

LogChannelInterface (org.pentaho.di.core.logging.LogChannelInterface)3 LogChannelInterfaceFactory (org.pentaho.di.core.logging.LogChannelInterfaceFactory)3 Before (org.junit.Before)2 LoggingObjectInterface (org.pentaho.di.core.logging.LoggingObjectInterface)2