From 6b090a28a388a50540446f6c8529447a3e71a61b Mon Sep 17 00:00:00 2001 From: Pavel Jandejsek Date: Mon, 7 Dec 2020 19:54:50 +0100 Subject: [PATCH] Removed redundant random email command test --- .../expression/RandomEmailCommandTest.groovy | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 jbehave-support-core/src/test/groovy/org/jbehavesupport/core/internal/expression/RandomEmailCommandTest.groovy diff --git a/jbehave-support-core/src/test/groovy/org/jbehavesupport/core/internal/expression/RandomEmailCommandTest.groovy b/jbehave-support-core/src/test/groovy/org/jbehavesupport/core/internal/expression/RandomEmailCommandTest.groovy deleted file mode 100644 index 0a77d051..00000000 --- a/jbehave-support-core/src/test/groovy/org/jbehavesupport/core/internal/expression/RandomEmailCommandTest.groovy +++ /dev/null @@ -1,27 +0,0 @@ -package org.jbehavesupport.core.internal.expression - -import spock.lang.Specification - -class RandomEmailCommandTest extends Specification { - - def "Execute correct mail"() { - - when: - RandomEmailCommand rec = new RandomEmailCommand() - String mail = rec.execute() - - then: - mail.contains("@") && mail.contains(".") - } - - def "Execute wrong arguments"() { - - when: - RandomEmailCommand rec = new RandomEmailCommand() - String mail = rec.execute("my@mail.org") - - then: - thrown(IllegalArgumentException) - - } -}