Bharat saraswal
Committed by Thomas Vachuska

ONOS-4719 - Environmental vaiables dependency removed from UT

Change-Id: Id57ed2c7fbba9347b1b990c1305862460f78cbcd
......@@ -40,15 +40,14 @@ public final class ChoiceCaseTranslatorTest {
@Test
public void processChoiceCaseTranslator() throws IOException, ParserException {
String userDir = System.getProperty("user.dir");
YangNode node = manager.getDataModel("src/test/resources/ChoiceCaseTranslator.yang");
YangPluginConfig yangPluginConfig = new YangPluginConfig();
yangPluginConfig.setCodeGenDir(userDir + "/target/ChoiceCaseTestGenFile/");
yangPluginConfig.setCodeGenDir("target/ChoiceCaseTestGenFile/");
generateJavaCode(node, yangPluginConfig);
deleteDirectory(userDir + "/target/ChoiceCaseTestGenFile/");
deleteDirectory("target/ChoiceCaseTestGenFile/");
}
// TODO enhance the test cases, after having a framework of translator test.
}
......
......@@ -41,15 +41,14 @@ public final class EnumTranslatorTest {
public void processEnumTranslator()
throws IOException, ParserException {
String userDir = System.getProperty("user.dir");
YangNode node = manager.getDataModel("src/test/resources/EnumTranslator.yang");
YangPluginConfig yangPluginConfig = new YangPluginConfig();
yangPluginConfig.setCodeGenDir(userDir + "/target/EnumTestGenFile/");
yangPluginConfig.setCodeGenDir("target/EnumTestGenFile/");
generateJavaCode(node, yangPluginConfig);
deleteDirectory(userDir + "/target/EnumTestGenFile/");
deleteDirectory("target/EnumTestGenFile/");
}
// TODO enhance the test cases, after having a framework of translator test.
}
......
......@@ -41,15 +41,14 @@ public final class NotificationTranslatorTest {
public void processUnionTranslator()
throws IOException, ParserException {
String userDir = System.getProperty("user.dir");
YangNode node = manager.getDataModel("src/test/resources/NotificationTest.yang");
YangPluginConfig yangPluginConfig = new YangPluginConfig();
yangPluginConfig.setCodeGenDir(userDir + "/target/NotificationTest/");
yangPluginConfig.setCodeGenDir("target/NotificationTest/");
generateJavaCode(node, yangPluginConfig);
deleteDirectory(userDir + "/target/NotificationTest/");
deleteDirectory("target/NotificationTest/");
}
// TODO enhance the test cases, after having a framework of translator test.
......
......@@ -41,15 +41,14 @@ public final class RpcTranslatorTest {
public void processRpcTranslator()
throws IOException, ParserException {
String userDir = System.getProperty("user.dir");
YangNode node = manager.getDataModel("src/test/resources/RpcTranslator.yang");
YangPluginConfig yangPluginConfig = new YangPluginConfig();
yangPluginConfig.setCodeGenDir(userDir + "/target/RpcTestGenFile/");
yangPluginConfig.setCodeGenDir("target/RpcTestGenFile/");
generateJavaCode(node, yangPluginConfig);
deleteDirectory(userDir + "/target/RpcTestGenFile/");
deleteDirectory("target/RpcTestGenFile/");
}
// TODO enhance the test cases, after having a framework of translator test.
}
......
......@@ -41,7 +41,6 @@ public final class UnionTranslatorTest {
public void processUnionTranslator()
throws IOException, ParserException {
String userDir = System.getProperty("user.dir");
YangNode node = manager.getDataModel("src/test/resources/UnionTranslator.yang");
YangPluginConfig yangPluginConfig = new YangPluginConfig();
......@@ -49,7 +48,7 @@ public final class UnionTranslatorTest {
generateJavaCode(node, yangPluginConfig);
deleteDirectory(userDir + "/target/UnionTestGenFile/");
deleteDirectory("target/UnionTestGenFile/");
}
// TODO enhance the test cases, after having a framework of translator test.
......