Search in sources :

Example 1 with DataSource

use of mondrian.xmla.DataSourcesConfig.DataSource in project pentaho-platform by pentaho.

the class MondrianCatalogHelperTest method setupDsObjects.

private void setupDsObjects() {
    dsList = new DataSourcesConfig.DataSources();
    dsList.dataSources = new DataSource[1];
    DataSource ds = new DataSource();
    dsList.dataSources[0] = ds;
    ds.catalogs = new Catalogs();
    ds.catalogs.catalogs = new Catalog[1];
    Catalog ct = new Catalog();
    ct.definition = DEFINITION;
    ds.catalogs.catalogs[0] = ct;
}
Also used : DataSourcesConfig(mondrian.xmla.DataSourcesConfig) Catalogs(mondrian.xmla.DataSourcesConfig.Catalogs) Catalog(mondrian.xmla.DataSourcesConfig.Catalog) DataSource(mondrian.xmla.DataSourcesConfig.DataSource)

Aggregations

DataSourcesConfig (mondrian.xmla.DataSourcesConfig)1 Catalog (mondrian.xmla.DataSourcesConfig.Catalog)1 Catalogs (mondrian.xmla.DataSourcesConfig.Catalogs)1 DataSource (mondrian.xmla.DataSourcesConfig.DataSource)1