commit | 51c5d67316d614617b640d40863014bbe7ef539a | [log] [tgz] |
---|---|---|
author | Bharat saraswal <bharat.saraswal@huawei.com> | Sun Nov 13 09:03:48 2016 +0530 |
committer | Bharat saraswal <bharat.saraswal@huawei.com> | Tue Nov 15 15:36:56 2016 +0530 |
tree | b4d91d2df14b116c7523e705166e708527566272 | |
parent | 617f83e697f44652f7cb3790eabe2d711eb7c8ea [diff] |
[ONOS-5630][ONOS-5615][ONOS-5634][ONOS-5635][ONOS-5568] defect fix for generated code. Change-Id: I1d07e8c836005cdc9107186df18b468bc3b13cd1
diff --git a/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/InterFileIdentityLinkingTest.java b/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/InterFileIdentityLinkingTest.java index fe46f72..19610b1 100644 --- a/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/InterFileIdentityLinkingTest.java +++ b/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/InterFileIdentityLinkingTest.java
@@ -159,6 +159,7 @@ utilManager.translateToJava(yangPluginConfig); compileCode(System.getProperty("user.dir") + File .separator + "target/identityTranslator/"); + deleteDirectory("target/identityTranslator/"); } /**
diff --git a/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/TypeDefTranslatorTest.java b/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/TypeDefTranslatorTest.java index 1c5c56c..a7320de 100644 --- a/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/TypeDefTranslatorTest.java +++ b/plugin/maven/src/test/java/org/onosproject/yangutils/plugin/manager/TypeDefTranslatorTest.java
@@ -105,6 +105,6 @@ yangPluginConfig.setCodeGenDir(DIR); utilManager.translateToJava(yangPluginConfig); compileCode(DIR1); - deleteDirectory(DIR); + //deleteDirectory(DIR); } }
diff --git a/plugin/maven/src/test/resources/identityTranslator/test.yang b/plugin/maven/src/test/resources/identityTranslator/test.yang index e8c1889..f4f61bd 100644 --- a/plugin/maven/src/test/resources/identityTranslator/test.yang +++ b/plugin/maven/src/test/resources/identityTranslator/test.yang
@@ -31,6 +31,17 @@ base ipv4-address-family; } } + + container ip { + container ipv4-address-family { + leaf tunnel1 { + type identityref { + base ipv4-address-family; + } + } + } + } + typedef type3 { type union { type type2;