You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2017/10/18 09:43:33 UTC
[3/5] james-project git commit: JAMES-2185 getMessageList: add Bob
user
JAMES-2185 getMessageList: add Bob user
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d0c9456a
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d0c9456a
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d0c9456a
Branch: refs/heads/master
Commit: d0c9456a87c3933dce42dd465cb9dd8b4898b2dd
Parents: e627ae6
Author: Luc DUZAN <ld...@linagora.com>
Authored: Mon Oct 16 09:56:10 2017 +0700
Committer: Matthieu Baechler <ma...@apache.org>
Committed: Wed Oct 18 11:42:40 2017 +0200
----------------------------------------------------------------------
.../methods/integration/GetMessageListMethodTest.java | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/d0c9456a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/GetMessageListMethodTest.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/GetMessageListMethodTest.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/GetMessageListMethodTest.java
index 771b3c0..b9f031a 100644
--- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/GetMessageListMethodTest.java
+++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/GetMessageListMethodTest.java
@@ -81,7 +81,9 @@ public abstract class GetMessageListMethodTest {
protected abstract void await();
private AccessToken aliceAccessToken;
+ private AccessToken bobAccessToken;
private String alice;
+ private String bob;
private String domain;
private GuiceJamesServer jmapServer;
private MailboxProbe mailboxProbe;
@@ -102,11 +104,17 @@ public abstract class GetMessageListMethodTest {
.build();
this.domain = "domain.tld";
+
this.alice = "alice@" + domain;
- String password = "password";
dataProbe.addDomain(domain);
- dataProbe.addUser(alice, password);
- this.aliceAccessToken = HttpJmapAuthentication.authenticateJamesUser(baseUri(), alice, password);
+ String alicePassword = "alicePassword";
+ dataProbe.addUser(alice, alicePassword);
+ this.aliceAccessToken = HttpJmapAuthentication.authenticateJamesUser(baseUri(), alice, alicePassword);
+
+ this.bob = "bob@" + domain;
+ String bobPassword = "bobPassword";
+ dataProbe.addUser(bob, bobPassword);
+ this.bobAccessToken = HttpJmapAuthentication.authenticateJamesUser(baseUri(), bob, bobPassword);
}
private URIBuilder baseUri() {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org