Merge branch 'release/0.1.0-RELEASE'
This commit is contained in:
commit
73da6caa9f
2 changed files with 34 additions and 1 deletions
33
README.md
33
README.md
|
@ -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);
|
||||||
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue