Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.1.0-RELEASE'
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitix committed Apr 8, 2015
2 parents f2a0707 + a4cca76 commit 73da6ca
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# wiser-assertions
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 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.kemitix</groupId>
<artifactId>wiser-assertions</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.1.0-RELEASE</version>
<packaging>jar</packaging>

<name>wiser-assertions</name>
Expand Down

0 comments on commit 73da6ca

Please sign in to comment.