public abstract class AbstractRollingReplicationTests
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractRollingReplicationTests.ImapActions<T> |
Modifier and Type | Field and Description |
---|---|
protected IdRange |
allocations |
protected java.lang.String |
apiKey |
protected java.lang.String |
cyrusIp |
protected CyrusReplicationHelper |
cyrusReplication |
protected java.lang.String |
domainUid |
protected java.lang.String |
mboxRoot |
protected java.lang.String |
partition |
protected ReplicationEventsRecorder |
rec |
protected java.lang.String |
userUid
login local part == uid for unit tests
|
Constructor and Description |
---|
AbstractRollingReplicationTests() |
Modifier and Type | Method and Description |
---|---|
protected ItemValue<MailboxItem> |
addDraft(ItemValue<MailboxFolder> inbox) |
protected ItemValue<MailboxItem> |
addDraft(ItemValue<MailboxFolder> inbox,
long id) |
protected ItemValue<MailboxItem> |
addDraft(ItemValue<MailboxFolder> inbox,
long id,
java.lang.String owner) |
protected ItemValue<MailboxItem> |
addDraft(ItemValue<MailboxFolder> inbox,
java.lang.String owner) |
protected long |
addMailToFolder(java.io.InputStream eml,
java.lang.String folderUid) |
protected void |
addMailToFolder(java.lang.String folderUid) |
void |
after() |
void |
before() |
protected java.util.concurrent.CountDownLatch |
expectMessage(java.lang.String vertxAddress) |
protected java.util.concurrent.CountDownLatch |
expectMessages(java.lang.String vertxAddress,
int count) |
protected java.util.concurrent.CountDownLatch |
expectMessages(java.lang.String vertxAddress,
int count,
java.util.function.Predicate<io.vertx.core.json.JsonObject> msgFilter) |
protected <T> T |
imapAsCyrusAdmin(AbstractRollingReplicationTests.ImapActions<T> actions) |
protected <T> T |
imapAsUser(AbstractRollingReplicationTests.ImapActions<T> actions) |
protected IServiceProvider |
provider() |
protected java.io.InputStream |
testEml() |
protected java.lang.String |
uniqueUidPart() |
protected java.lang.String cyrusIp
protected java.lang.String domainUid
protected java.lang.String userUid
protected ReplicationEventsRecorder rec
protected CyrusReplicationHelper cyrusReplication
protected java.lang.String apiKey
protected java.lang.String partition
protected java.lang.String mboxRoot
protected IdRange allocations
protected java.lang.String uniqueUidPart()
public void before() throws java.lang.Exception
java.lang.Exception
protected <T> T imapAsUser(AbstractRollingReplicationTests.ImapActions<T> actions)
protected <T> T imapAsCyrusAdmin(AbstractRollingReplicationTests.ImapActions<T> actions)
protected java.io.InputStream testEml()
protected ItemValue<MailboxItem> addDraft(ItemValue<MailboxFolder> inbox) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected ItemValue<MailboxItem> addDraft(ItemValue<MailboxFolder> inbox, java.lang.String owner) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected ItemValue<MailboxItem> addDraft(ItemValue<MailboxFolder> inbox, long id) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected ItemValue<MailboxItem> addDraft(ItemValue<MailboxFolder> inbox, long id, java.lang.String owner) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected IServiceProvider provider()
public void after() throws java.lang.Exception
java.lang.Exception
protected java.util.concurrent.CountDownLatch expectMessage(java.lang.String vertxAddress)
protected java.util.concurrent.CountDownLatch expectMessages(java.lang.String vertxAddress, int count)
protected java.util.concurrent.CountDownLatch expectMessages(java.lang.String vertxAddress, int count, java.util.function.Predicate<io.vertx.core.json.JsonObject> msgFilter)
protected long addMailToFolder(java.io.InputStream eml, java.lang.String folderUid) throws java.io.IOException
eml
- java.io.IOException
protected void addMailToFolder(java.lang.String folderUid) throws java.io.IOException
java.io.IOException
Copyright © 2021. All Rights Reserved.