+
+ describe("required parameter is absent") {
+ given("ves port is missing") {
+ it("should throw exception") {
+ assertThat(parseExpectingFailure("-p", listenPort, "-h", vesHost))
+ .isInstanceOf(WrongArgumentError::class.java)
+ }
+ }
+
+ given("ves host is missing") {
+ it("should throw exception") {
+ assertThat(parseExpectingFailure("-p", listenPort, "-v", vesPort))
+ .isInstanceOf(WrongArgumentError::class.java)
+ }
+ }
+
+ given("listen port is missing") {
+ it("should throw exception") {
+ assertThat(parseExpectingFailure("-h", vesHost, "-v", vesPort))
+ .isInstanceOf(WrongArgumentError::class.java)
+ }
+ }
+ }