Merge branch 'release/0.1.0-RELEASE'

This commit is contained in:
Paul Campbell 2015-04-08 14:15:42 +01:00
commit 73da6caa9f
2 changed files with 34 additions and 1 deletions

View file

@ -1,2 +1,35 @@
# wiser-assertions # wiser-assertions
Assertions for Wiser SMTP test server from subethamail Assertions for Wiser SMTP test server from subethamail
## 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);
}

View file

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.kemitix</groupId> <groupId>net.kemitix</groupId>
<artifactId>wiser-assertions</artifactId> <artifactId>wiser-assertions</artifactId>
<version>1.0-SNAPSHOT</version> <version>0.1.0-RELEASE</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>wiser-assertions</name> <name>wiser-assertions</name>