use of org.pentaho.metadata.util.LocalizationUtil in project pentaho-platform by pentaho.
the class PentahoMetadataDomainRepositoryTest method testInitialization.
@Test
public void testInitialization() {
try {
createDomainRepository(null);
fail("An exception should be thrown");
} catch (Exception success) {
// ignored
}
try {
createDomainRepository(null, null, null, null);
fail("An exception should be thrown");
} catch (Exception success) {
// ignored
}
final RepositoryUtils repositoryUtils = new RepositoryUtils(repository);
final XmiParser xmiParser = new XmiParser();
final LocalizationUtil localizationUtil = new LocalizationUtil();
final PentahoMetadataDomainRepository repo = createDomainRepository(repository, repositoryUtils, xmiParser, localizationUtil);
assertEquals(repository, repo.getRepository());
assertEquals(repositoryUtils, repo.getRepositoryUtils());
assertEquals(xmiParser, repo.getXmiParser());
assertEquals(localizationUtil, repo.getLocalizationUtil());
}
Aggregations