Author: rdonkin
Date: Wed May 13 07:00:06 2009
New Revision: 774241
URL: http://svn.apache.org/viewvc?rev=774241&view=rev
Log:
Added functional test which should replicate. Existing code passes. IMAP-83
https://issues.apache.org/jira/browse/IMAP-83
Added:
james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test
Modified:
james/imap/trunk/seda/src/test/java/org/apache/james/imap/functional/suite/ConcurrentSessions.java
Modified:
james/imap/trunk/seda/src/test/java/org/apache/james/imap/functional/suite/ConcurrentSessions.java
URL:
http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/java/org/apache/james/imap/functional/suite/ConcurrentSessions.java?rev=774241&r1=774240&r2=774241&view=diff
==============================================================================
---
james/imap/trunk/seda/src/test/java/org/apache/james/imap/functional/suite/ConcurrentSessions.java
(original)
+++
james/imap/trunk/seda/src/test/java/org/apache/james/imap/functional/suite/ConcurrentSessions.java
Wed May 13 07:00:06 2009
@@ -30,6 +30,18 @@
super(system);
}
+ public void testConcurrentCrossExpungeUS() throws Exception {
+ scriptTest("ConcurrentCrossExpunge", Locale.US);
+ }
+
+ public void testConcurrentCrossExpungeITALY() throws Exception {
+ scriptTest("ConcurrentCrossExpunge", Locale.ITALY);
+ }
+
+ public void testConcurrentCrossExpungeKOREA() throws Exception {
+ scriptTest("ConcurrentCrossExpunge", Locale.KOREA);
+ }
+
public void testConcurrentRenameSelectedSubUS() throws Exception {
scriptTest("ConcurrentRenameSelectedSub", Locale.US);
}
Added:
james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test
URL:
http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test?rev=774241&view=auto
==============================================================================
---
james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test
(added)
+++
james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test
Wed May 13 07:00:06 2009
@@ -0,0 +1,106 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one #
+# or more contributor license agreements. See the NOTICE file #
+# distributed with this work for additional information #
+# regarding copyright ownership. The ASF licenses this file #
+# to you under the Apache License, Version 2.0 (the #
+# "License"); you may not use this file except in compliance #
+# with the License. You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, #
+# software distributed under the License is distributed on an #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #
+# KIND, either express or implied. See the License for the #
+# specific language governing permissions and limitations #
+# under the License. #
+################################################################
+SESSION: 1
+C: 1a CREATE alpha
+S: 1a OK CREATE completed.
+
+C: 1b APPEND alpha (\Deleted) {254+}
+C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
+C: From: Fred Foobar <[email protected]>
+C: Subject: Test 01
+C: To: [email protected]
+C: Message-Id: <[email protected]>
+C: MIME-Version: 1.0
+C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
+C:
+C: Test 01
+C:
+S: 1b OK APPEND completed.
+
+C: 1b APPEND alpha {254+}
+C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
+C: From: Fred Foobar <[email protected]>
+C: Subject: Test 02
+C: To: [email protected]
+C: Message-Id: <[email protected]>
+C: MIME-Version: 1.0
+C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
+C:
+C: Test 02
+C:
+S: 1b OK APPEND completed.
+
+C: 1c APPEND alpha (\Deleted) {254+}
+C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
+C: From: Fred Foobar <[email protected]>
+C: Subject: Test 03
+C: To: [email protected]
+C: Message-Id: <[email protected]>
+C: MIME-Version: 1.0
+C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
+C:
+C: Test 03
+C:
+S: 1c OK APPEND completed.
+
+C: 1d APPEND alpha {254+}
+C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
+C: From: Fred Foobar <[email protected]>
+C: Subject: Test 04
+C: To: [email protected]
+C: Message-Id: <[email protected]>
+C: MIME-Version: 1.0
+C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
+C:
+C: Test 04
+C:
+S: 1d OK APPEND completed.
+
+C: 1e SELECT alpha
+S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: \* OK \[UIDVALIDITY \d+\]
+S: \* OK \[UNSEEN 1\]
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
+S: 1e OK \[READ-WRITE\] SELECT completed.
+
+C: 1g STORE 1 FLAGS (\Deleted)
+S: \* 1 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
+S: 1g OK STORE completed.
+C: 1h STORE 3 FLAGS (\Deleted)
+S: \* 3 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
+S: 1h OK STORE completed.
+
+SESSION: 2
+C: 2e SELECT alpha
+S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
+S: \* 4 EXISTS
+S: \* 0 RECENT
+S: \* OK \[UIDVALIDITY \d+\]
+S: \* OK \[UNSEEN 1\]
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
+S: 2e OK \[READ-WRITE\] SELECT completed.
+
+C: 2f EXPUNGE
+S: \* 1 EXPUNGE
+S: \* 2 EXPUNGE
+S: 2f OK EXPUNGE completed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]