assertNotNull( content.selectNodes(
"/DataSources/DataSource/Catalogs/Catalog[@name='FoodMart']" ) );
}
public void testInvalidDataSourceInfo() throws Exception {
ISecurityHelper securityHelper = mock( ISecurityHelper.class );
SecurityHelper.setMockInstance( securityHelper );
when( securityHelper.runAsSystem( any( ( Callable.class ) ) ) ).thenReturn(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<DataSources>\n"
+ "<DataSource>\n"
+ "<DataSourceName>Pentaho</DataSourceName>\n"
+ "<DataSourceDescription>Pentaho BI Platform Datasources</DataSourceDescription>\n"