Merge "Bug 4700 - RestPerfClient spits NumberFormatException and hangs"
authorTony Tkacik <ttkacik@cisco.com>
Fri, 11 Dec 2015 13:20:13 +0000 (13:20 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 11 Dec 2015 13:20:13 +0000 (13:20 +0000)
opendaylight/netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/client/http/perf/Parameters.java

index 8ef49f3511a555073f421304ffb40c0dc2d9d51f..7985eef925204e3656fc75698cbaaf3081141dea 100644 (file)
@@ -132,6 +132,9 @@ public class Parameters {
         Preconditions.checkArgument(editContent.exists(), "Edit content file missing");
         Preconditions.checkArgument(editContent.isDirectory() == false, "Edit content file is a dir");
         Preconditions.checkArgument(editContent.canRead(), "Edit content file is unreadable");
+
+        Preconditions.checkArgument(destination.startsWith("/"), "Destination should start with a '/'");
+
         // TODO validate
     }