public abstract class AbstractChainTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TestRegistry |
testRegistry |
Constructor and Description |
---|
AbstractChainTest() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
protected java.util.concurrent.CompletableFuture<Response[]> |
checkCode(Response[] resp,
int... valid) |
protected java.util.concurrent.CompletableFuture<Response> |
checkCode(Response resp,
int... valid) |
protected abstract VertxLmtpClient |
lmtpClient() |
protected org.vertx.java.core.buffer.Buffer |
resourceBuffer(java.lang.String path) |
protected java.io.InputStream |
resourceStream(java.lang.String path) |
void |
testBatchOfCommands() |
void |
testIncomingMailTriggersOverQuota() |
void |
testLHLO() |
void |
testValidSenderAllRecipOverQuotaWithData() |
void |
testValidSenderFuckedRecip() |
void |
testValidSenderOneRecipOneOverQuotaWithData() |
void |
testValidSenderOverQuotaRecip() |
void |
testValidSenderTwoValidRecipWithData() |
void |
testValidSenderUnknownRecip() |
void |
testValidSenderValidRecip() |
void |
testValidSenderValidRecipWithData() |
void |
testValidWithRealMail() |
protected void |
withConnection(java.util.function.Function<VertxLmtpClient,java.util.concurrent.CompletableFuture<?>> withClient) |
protected TestRegistry testRegistry
public void before() throws java.lang.Exception
java.lang.Exception
public void after() throws java.lang.Exception
java.lang.Exception
protected java.util.concurrent.CompletableFuture<Response> checkCode(Response resp, int... valid)
protected java.util.concurrent.CompletableFuture<Response[]> checkCode(Response[] resp, int... valid)
protected abstract VertxLmtpClient lmtpClient()
protected void withConnection(java.util.function.Function<VertxLmtpClient,java.util.concurrent.CompletableFuture<?>> withClient) throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testLHLO() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderValidRecip() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderUnknownRecip() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderValidRecipWithData() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderTwoValidRecipWithData() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderOneRecipOneOverQuotaWithData() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderAllRecipOverQuotaWithData() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
protected org.vertx.java.core.buffer.Buffer resourceBuffer(java.lang.String path)
protected java.io.InputStream resourceStream(java.lang.String path)
public void testValidWithRealMail() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testIncomingMailTriggersOverQuota() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderOverQuotaRecip() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testValidSenderFuckedRecip() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void testBatchOfCommands() throws java.net.UnknownHostException, java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
Copyright © 2021. All Rights Reserved.