JAMES-2186 rename cucumber "should receive that blob" into "can read that blob"
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/4d28230f Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/4d28230f Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/4d28230f Branch: refs/heads/master Commit: 4d28230fc59bbddf959f1c94a22feac89e636dba Parents: eff87da Author: Luc DUZAN <[email protected]> Authored: Thu Oct 19 15:06:04 2017 +0700 Committer: Matthieu Baechler <[email protected]> Committed: Mon Oct 23 13:50:39 2017 +0200 ---------------------------------------------------------------------- .../integration/cucumber/DownloadStepdefs.java | 2 +- .../src/test/resources/cucumber/DownloadGet.feature | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/4d28230f/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java index f3d0462..80d378c 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java @@ -360,7 +360,7 @@ public class DownloadStepdefs { assertThat(response.getStatusLine().getStatusCode()).isEqualTo(400); } - @Then("^the user should receive that blob") + @Then("^the user can read that blob") public void httpOkStatusAndExpectedContent() throws IOException { assertThat(response.getStatusLine().getStatusCode()).isEqualTo(200); assertThat(IOUtils.toString(response.getEntity().getContent(), Charsets.UTF_8)).isNotEmpty(); http://git-wip-us.apache.org/repos/asf/james-project/blob/4d28230f/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature index b413d58..6619d5d 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/resources/cucumber/DownloadGet.feature @@ -30,7 +30,7 @@ Feature: Download GET Scenario: Getting an attachment previously stored Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" When "[email protected]" downloads "2" - Then the user should receive that blob + Then the user can read that blob And the blob size is 3071 Scenario: Getting an attachment with an unknown blobId @@ -41,26 +41,26 @@ Feature: Download GET Scenario: Getting an attachment previously stored with a desired name Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" When "[email protected]" downloads "2" with "myFileName.txt" name - Then the user should receive that blob + Then the user can read that blob And the attachment is named "myFileName.txt" Scenario: Getting an attachment previously stored with a non ASCII name Given "[email protected]" mailbox "INBOX" contains a message "1" with an attachment "2" When "[email protected]" downloads "2" with "دÙÙØ§ØµÙر.odt" name - Then the user should receive that blob + Then the user can read that blob And the attachment is named "دÙÙØ§ØµÙر.odt" Scenario: Getting a message blob previously stored Given "[email protected]" mailbox "INBOX" contains a message "1" When "[email protected]" downloads "1" - Then the user should receive that blob + Then the user can read that blob And the blob size is 4963 Scenario: Getting a message then getting its blob Given the user has a message "m1" in "INBOX" mailbox with subject "my test subject", content "testmail" And the user ask for messages "m1" When "[email protected]" downloads the message by its blobId - Then the user should receive that blob + Then the user can read that blob And the blob size is 36 Scenario: Deleted message should revoke attachment blob download rights @@ -89,7 +89,7 @@ Feature: Download GET And a connected user "[email protected]" And "[email protected]" has a mailbox "sharedMailbox" When "[email protected]" downloads "2" - Then the user should receive that blob + Then the user can read that blob And the blob size is 3071 Scenario: User can download message blob of another user when shared mailbox @@ -98,5 +98,5 @@ Feature: Download GET And a connected user "[email protected]" And "[email protected]" has a mailbox "sharedMailbox" When "[email protected]" downloads "1" - Then the user should receive that blob + Then the user can read that blob And the blob size is 4963 \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
