thrown exception to test
This commit is contained in:
parent
bfbf0e4c65
commit
81a0a81e1e
|
@ -118,8 +118,9 @@ public class MetadataProfileReader implements MetadataProfileDiscovery {
|
|||
|
||||
/**
|
||||
* Read namespaces.
|
||||
* @throws Exception
|
||||
*/
|
||||
private void readNamespaces() {
|
||||
private void readNamespaces() throws Exception {
|
||||
|
||||
try {
|
||||
if (namespaceCategories == null || namespaceCategories.isEmpty()) {
|
||||
|
@ -132,6 +133,7 @@ public class MetadataProfileReader implements MetadataProfileDiscovery {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
logger.debug("An error occurred during read namespaces for categories: ", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,10 +27,11 @@ public class TestDataCatalogueMetadataFormatReader {
|
|||
|
||||
/**
|
||||
* Test.
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void test() {
|
||||
try {
|
||||
public void test() throws Exception {
|
||||
|
||||
|
||||
// String scopeString = "/gcube/devsec/devVRE";
|
||||
// String grMetadataProfileSecondaryType = "DataCatalogueMetadata";
|
||||
|
@ -57,10 +58,6 @@ public class TestDataCatalogueMetadataFormatReader {
|
|||
logger.trace("\n\n "+ ++i +".) Metadata source: "+metadataFormat.getMetadataSource().substring(0, 100));
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue