JAMES-1717 Make VacationIntegrationTest less timing dependent

If the calls to get the Mailbox INBOX was done before its creation, tests fails


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a951004f
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a951004f
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a951004f

Branch: refs/heads/master
Commit: a951004f457d23a785a3658d1929e1c89c42f7d1
Parents: b2d1726
Author: Benoit Tellier <[email protected]>
Authored: Tue May 24 14:58:27 2016 +0700
Committer: Benoit Tellier <[email protected]>
Committed: Wed May 25 09:59:50 2016 +0700

----------------------------------------------------------------------
 .../test/java/org/apache/james/jmap/VacationIntegrationTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/a951004f/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java
 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java
index c2672bc..75b5202 100644
--- 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java
+++ 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java
@@ -74,6 +74,8 @@ public abstract class VacationIntegrationTest {
         
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_2, "outbox");
         
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_1, "sent");
         
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_2, "sent");
+        
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_1, "INBOX");
+        
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_2, "INBOX");
         await();
 
 
@@ -168,7 +170,6 @@ public abstract class VacationIntegrationTest {
         */
 
         // Given
-        
guiceJamesServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
USER_2, "INBOX");
         AccessToken user1AccessToken = 
JmapAuthentication.authenticateJamesUser(USER_1, PASSWORD);
         AccessToken user2AccessToken = 
JmapAuthentication.authenticateJamesUser(USER_2, PASSWORD);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to