From e5e38fc8e275a0a8e68c3eee0362a2400b8d1e57 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 5 Jun 2012 01:40:28 +0100 Subject: [PATCH] Added test for deleting a server that does not exist. --- test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test.sh b/test.sh index ecacd3d..683f6bb 100644 --- a/test.sh +++ b/test.sh @@ -109,6 +109,13 @@ test_create_server_with_jar_groups() { } +test_deleting_server_that_does_not_exist() { + local result="$(stdall $SCRIPT server delete example)" + local regex="^There\ is\ no\ server\ with\ the\ name" + + assertTrue "" "[[ \"$result\" =~ $regex ]]" +} + # Server Tests # ------------