use of org.kie.workbench.common.screens.datasource.management.metadata.SchemaMetadata in project kie-wb-common by kiegroup.
the class DatabaseObjectExplorerTest method setup.
@Before
public void setup() {
objectExplorer = new DatabaseObjectExplorer(view, new CallerMock<>(metadataService), translationService);
// emulate the @PostConstruct invocation.
objectExplorer.init();
schemas.add(new SchemaMetadata(SCHEMA_NAME));
schemas.add(new SchemaMetadata("schema2"));
schemas.add(new SchemaMetadata("schema3"));
dbObjects.add(new TableMetadata(CATALOG_NAME, SCHEMA_NAME, "table1", DatabaseMetadata.TableType.TABLE.name()));
dbObjects.add(new TableMetadata(CATALOG_NAME, SCHEMA_NAME, "table2", DatabaseMetadata.TableType.TABLE.name()));
}
Aggregations