use of org.pentaho.metaverse.frames.MongoDbDatasourceNode in project pentaho-metaverse by pentaho.
the class MetaverseValidationIT method testMongoDbConnections.
@Test
public void testMongoDbConnections() throws Exception {
int countMongoConnections = getIterableSize(root.getMongoDbDatasourceNodes());
for (MongoDbDatasourceNode ds : root.getMongoDbDatasourceNodes()) {
// make sure at least one step uses the connection
int countUsedSteps = getIterableSize(ds.getTransformationStepNodes());
assertTrue(countUsedSteps > 0);
assertEquals(DictionaryConst.NODE_TYPE_MONGODB_CONNECTION, ds.getEntity().getName());
assertNotNull(ds.getName());
assertNotNull(ds.getDatabaseName());
assertNotNull(ds.getPort());
}
assertTrue(countMongoConnections > 0);
}
Aggregations