diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitreview | 2 | ||||
-rw-r--r-- | aai-core/src/test/java/org/openecomp/aai/dbmodel/DbEdgeRulesConverterTest.java | 5 |
3 files changed, 7 insertions, 2 deletions
@@ -7,3 +7,5 @@ bundleconfig-local/etc/auth/tomcat_keystore bundleconfig-local/etc/logback.xml /.pydevproject /bin/ +/.idea +*.iml @@ -1,4 +1,4 @@ [gerrit] host=gerrit.onap.org port=29418 -project=aai-common.git +project=aai/aai-common diff --git a/aai-core/src/test/java/org/openecomp/aai/dbmodel/DbEdgeRulesConverterTest.java b/aai-core/src/test/java/org/openecomp/aai/dbmodel/DbEdgeRulesConverterTest.java index 1310a05b..3a1d9cc1 100644 --- a/aai-core/src/test/java/org/openecomp/aai/dbmodel/DbEdgeRulesConverterTest.java +++ b/aai-core/src/test/java/org/openecomp/aai/dbmodel/DbEdgeRulesConverterTest.java @@ -73,15 +73,18 @@ public class DbEdgeRulesConverterTest { .putAll("baz|quux", "treatsVeryKindly,IN,One2One,true,true,true,true") .build(); - + try { dberCon.setup(dest); File result = new File(outFile); + //Add delete hook to delete the temporary result file on exit/ + result.deleteOnExit(); FileOutputStream writeStream = new FileOutputStream(result); Writer writer = new OutputStreamWriter(writeStream); dberCon.convert(EdgeRules, writer); File compare = new File("src/test/resources/dbEdgeRulesConversion/conversionTestCompare.json"); assertTrue(FileUtils.contentEquals(result, compare)); + writer.close(); } catch (IOException e) { e.printStackTrace(); fail("IOException on setup"); |