Assertions for Wiser SMTP test server from subethamail
Find a file
dependabot-preview[bot] fe018e33f1
Bump tiles-maven-plugin from 2.17 to 2.18 (#127)
* Bump tiles-maven-plugin from 2.17 to 2.18

Bumps [tiles-maven-plugin](https://github.com/repaint-io/maven-tiles) from 2.17 to 2.18.
- [Release notes](https://github.com/repaint-io/maven-tiles/releases)
- [Changelog](https://github.com/repaint-io/maven-tiles/blob/master/CHANGELOG.adoc)
- [Commits](https://github.com/repaint-io/maven-tiles/compare/tiles-maven-plugin-2.17...tiles-maven-plugin-2.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Test build on JDK 15

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
2020-10-05 11:44:37 +01:00
.github Bump tiles-maven-plugin from 2.17 to 2.18 (#127) 2020-10-05 11:44:37 +01:00
src Upgrade JUnit 4.13 to 5.6.1 (#86) 2020-03-23 13:13:57 +00:00
.gitignore Simplify .gitignore and remove ide project files 2018-08-23 19:55:14 +01:00
CHANGELOG.org Prepare for release 0.6.0 (#90) 2020-03-23 16:32:27 +00:00
LICENSE.txt Upgrade kemitix-parent to 5.1.1 to bring Java 9+ compatibility 2018-08-23 22:05:23 +01:00
pom.xml Bump tiles-maven-plugin from 2.17 to 2.18 (#127) 2020-10-05 11:44:37 +01:00
README.md Add Build and Coverage Status badges to README.md 2016-06-02 21:43:41 +01:00

Build Status Coverage Status

wiser-assertions

Assertions for Wiser SMTP test server from subethamail

Origin

Taken from Rafal Browiec WiserAssertions class.

Usage

@Before
public void setUp() throws IOException {
    wiser = new Wiser(PORT);
    wiser.start();
}

@After
public void tearDown() {
    wiser.stop();
}

@Test
public void testMail() {
    //given
    ...

    //when
    ...

    //then
    WiserAssertions.assertReceivedMessage(wiser)
            .from(sender)
            .to(recipient_alpha)
            .to(recipient_beta)
            .withSubjectContains(subject_prefix)
            .withSubjectContains(subject_suffix)
            .withContentContains(message_element_1)
            .withContentContains(message_element_2)
            .withContentContains(message_element_3);
}