WiserAssertions: apply checkstyle rule DeclarationOrder
This commit is contained in:
parent
1bc8bac229
commit
79032c0dd8
1 changed files with 12 additions and 13 deletions
|
@ -3,16 +3,15 @@ package net.kemitix.wiser.assertions;
|
|||
import org.subethamail.wiser.Wiser;
|
||||
import org.subethamail.wiser.WiserMessage;
|
||||
|
||||
import javax.mail.MessagingException;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
import javax.mail.internet.MimeMultipart;
|
||||
import java.io.IOException;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import javax.mail.MessagingException;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
import javax.mail.internet.MimeMultipart;
|
||||
|
||||
/**
|
||||
* Provides a set of assertions for checking the status of any messages received
|
||||
* by subethamail's Wiser.
|
||||
|
@ -46,6 +45,15 @@ public final class WiserAssertions {
|
|||
*/
|
||||
private final List<WiserMessage> messages;
|
||||
|
||||
/**
|
||||
* Private constructor.
|
||||
*
|
||||
* @param wiserMessages the messages to be tested by the assertions
|
||||
*/
|
||||
private WiserAssertions(final List<WiserMessage> wiserMessages) {
|
||||
this.messages = wiserMessages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of {@code} WiserAssertions} ready to make assertions
|
||||
* on any messages received by the {@link Wiser} server.
|
||||
|
@ -58,15 +66,6 @@ public final class WiserAssertions {
|
|||
return new WiserAssertions(wiser.getMessages());
|
||||
}
|
||||
|
||||
/**
|
||||
* Private constructor.
|
||||
*
|
||||
* @param wiserMessages the messages to be tested by the assertions
|
||||
*/
|
||||
private WiserAssertions(final List<WiserMessage> wiserMessages) {
|
||||
this.messages = wiserMessages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that there was at least one email received that was sent from the
|
||||
* {@code sender}.
|
||||
|
|
Loading…
Reference in a new issue