diff options
Diffstat (limited to 'juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java')
-rw-r--r-- | juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java b/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java index 4d2e259..df4a68c 100644 --- a/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java +++ b/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/test/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/common/LocalComandUtilsTest.java @@ -22,6 +22,7 @@ import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.List; +import org.junit.Before; import org.junit.Test; import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.LocalComandUtils; import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.LocalComandUtils.ExeRes; @@ -31,18 +32,19 @@ import mockit.MockUp; public class LocalComandUtilsTest { + @Test - public void testformatCommand(){ - new MockUp<LocalComandUtils>(){ + public void testformatCommand() { + new MockUp<LocalComandUtils>() { @Mock - public String formatCommand(List<String> command){ - return null; + public String formatCommand(List<String> command) { + return null; } }; - List<String> command =new ArrayList<String> (); + List<String> command = new ArrayList<String>(); command.add("test1"); command.add("test2"); - String s=LocalComandUtils.formatCommand(command); + String s = LocalComandUtils.formatCommand(command); } @@ -55,4 +57,21 @@ public class LocalComandUtilsTest { constructor.newInstance(); } + @Test + public void testExecute() { + LocalComandUtils.execute("/test/data", "csi"); + } + + @Test + public void testFormatCommand2() { + + List<String> command = new ArrayList<String>(); + command.add("test1"); + command.add("test2"); + LocalComandUtils.formatCommand(command); + + } + + + } |