use of org.pentaho.metaverse.api.IMetaverseObjectFactory in project pentaho-metaverse by pentaho.
the class MetaverseBuilderTest method testGetSetMetaverseObjectFactory.
@Test
public void testGetSetMetaverseObjectFactory() {
IMetaverseObjectFactory objectFactory = mock(IMetaverseObjectFactory.class);
builder.setMetaverseObjectFactory(objectFactory);
assertEquals(objectFactory, builder.getMetaverseObjectFactory());
}
use of org.pentaho.metaverse.api.IMetaverseObjectFactory in project pentaho-metaverse by pentaho.
the class DatabaseConnectionAnalyzerTest method setUp.
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
IMetaverseObjectFactory factory = MetaverseTestUtils.getMetaverseObjectFactory();
when(builder.getMetaverseObjectFactory()).thenReturn(factory);
dbConnectionAnalyzer = new StepDatabaseConnectionAnalyzer();
dbConnectionAnalyzer.setMetaverseBuilder(builder);
}
use of org.pentaho.metaverse.api.IMetaverseObjectFactory in project pentaho-metaverse by pentaho.
the class JobEntryAnalyzerTest method testValidateStateNullMetaverseObjectFactory.
@Test(expected = MetaverseAnalyzerException.class)
public void testValidateStateNullMetaverseObjectFactory() throws MetaverseAnalyzerException {
IMetaverseObjectFactory factory = null;
when(mockBuilder.getMetaverseObjectFactory()).thenReturn(factory);
analyzer.setMetaverseBuilder(mockBuilder);
analyzer.validateState(mockDescriptor, mockJobEntryInterface);
}
Aggregations