76022b8877
Upgrade kemitix-parent to 5.1.1 to bring Java 9+ compatibility
2018-08-23 22:05:23 +01:00
235ea47957
Update code style and reorganise methods
2016-06-02 21:13:39 +01:00
d20322cc65
WiserAssertions: suppress checkstyle rule IllegalThrows
2016-06-02 20:56:22 +01:00
af4b48e212
WiserAssertions: suppress checkstyle rule IllegalCatch
2016-06-02 20:55:35 +01:00
cef89074ef
WiserAssertions: apply rule ReturnCount
2016-06-02 20:53:47 +01:00
97d67cb557
WiserAssertions: apply checkstyle rule MultipleStringLiterals
2016-06-02 20:53:47 +01:00
79032c0dd8
WiserAssertions: apply checkstyle rule DeclarationOrder
2016-06-02 20:46:39 +01:00
b30289aca2
pom.xml: Upgrade to test with simple-java-mail 3.0.0
...
In simple-java-mail the Email class has been moved into the 'email' package,
thus the Issue1Test had to be updated. This doesn't affect how
wiser-assertions is used.
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-03-05 15:07:59 +00:00
eff6e6c0b3
WiserAssertions.getMimeMessageBody: accept that content may be a String
...
Spring's SimpleMailMessage doesn't wrap it's email body in a mime content
type as it is just a 'simple' mail message.
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-02-16 22:55:38 +00:00
146f53e404
AbstractWiserTest: always create a new Session for each test
...
Otherwise properties are ignored on subsequent calls.
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-02-16 22:53:44 +00:00
06c48f4444
AbstractWiserTest: fix refactoring artifact and use constant directly
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-02-16 22:52:21 +00:00
a11b2fcdd4
Issue6Test: assert from, to and withSubject to match submitted issue
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-02-16 22:51:31 +00:00
311eda0299
Issue6Test: add regression test for issue 6
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-02-16 22:26:31 +00:00
e9adcbb872
Merge pull request #5 from kemitix/issue-1-nested-multipart-mails
...
Issue #1 : Add support for nested multipart messages
2016-01-25 13:24:53 +00:00
04870102a2
Normalise formatting (comments and white space only).
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-01-25 13:20:31 +00:00
Jonjo McKay
d624902cfd
Issue #1 : Add support for nested multipart messages
2016-01-25 13:03:42 +00:00
911c0dd3b3
WiserAssertionsTest: fix line wrapping
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-01-25 12:11:42 +00:00
986daedfb1
Issue1Test: add draft test for nested multipart messages
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-01-25 11:54:28 +00:00
262283d628
Refactor common elements of testing to AbstractWiserTest
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2016-01-25 11:53:37 +00:00
bee688fe9f
WiserAssertionsTest: added
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-10-21 23:03:46 +01:00
14cc99fd88
WiserAssertions: improve conversion of mime Multipart message to string
...
Previously the message was written to an output stream. Headers and mime
boundaries included. Assertions which use this method are looking at the
content of the message, rather than the wrappings.
Now we just look at the content of the multiparts.
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-10-21 23:01:45 +01:00
Paul Campbell
794d37e72c
WiserAssertions: avoid using default characterset
...
Signed-off-by: Paul Campbell <paulcampbell@fife.ac.uk>
2015-10-16 15:46:57 +01:00
Paul Campbell
c305cd4371
WiserAssertions: convert messageBody content without using casting
...
Signed-off-by: Paul Campbell <paulcampbell@fife.ac.uk>
2015-10-16 15:46:57 +01:00
42b77c3565
WiserAssertions: add javadoc to make compliant with checkstyle
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-10-16 15:46:57 +01:00
54360df68b
package-info.java: added
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-10-16 15:45:55 +01:00
f2a07079b8
Support MimeMultipart messages when checking content
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-04-08 14:07:17 +01:00
d2f623f33c
Initial import
...
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
2015-04-08 11:51:50 +01:00