Philip Whitehouse
1497b5f781
Simplify based on feedback
2016-11-24 23:11:03 +00:00
Philip Whitehouse
3e6625dd24
Rename exception and update test
2016-11-21 12:46:40 +00:00
Philip Whitehouse
d220b29a2b
Handle e-mails with unsupported encoding
2016-11-21 12:15:03 +00:00
cketti
48581bd53c
Throw instead of returning null when Body.getInputStream() is not supported
...
Inspired by trying to find out what happened in issue #1794
2016-11-14 12:18:08 +01:00
Vincent Breitmoser
cedaecb38e
Merge pull request #1769 from k9mail/attachment-ninjafix
...
use AttachmentTempFileProvider to expose file-backed content uris
2016-11-08 11:21:39 +01:00
cketti
fbecc40d01
Use okio with AttachmentTempFileProvider
2016-11-08 09:07:52 +01:00
Philip Whitehouse
76536ce5c9
WebDAV: Improve logging when we get an unexpected redirect during sync
2016-11-05 17:25:44 +01:00
Jan Berkel
8b1c768483
Inject config from properties file
2016-10-19 12:35:28 +02:00
Jan Berkel
0342648568
Merge pull request #1734 from k9mail/test_cleanup
...
Clean up ImapFolderTest
2016-10-19 10:53:54 +02:00
cketti
e2f5719826
Override hostname used for EHLO command in tests
2016-10-19 10:20:27 +02:00
cketti
81245150d7
Tweak test names
2016-10-19 09:57:52 +02:00
cketti
457f69a94e
Add missing assertions to SmtpTransportTest
2016-10-19 09:57:52 +02:00
cketti
5ab9de5f55
Make tests more concise to improve readability
2016-10-19 09:57:52 +02:00
cketti
2ecd7f0e4e
Add nicer API to build test messages
2016-10-19 09:57:52 +02:00
cketti
edbda6df26
Move test helper classes to different package
2016-10-19 09:57:52 +02:00
cketti
82bc18673c
Code style fixes
2016-10-19 09:56:16 +02:00
Philip Whitehouse
a2b545fc39
SMTP: Further test coverage for various cases
2016-10-19 09:56:16 +02:00
Philip Whitehouse
d1904900c8
SMTP: Add test for 8-bit encoding behaviour
2016-10-19 09:56:16 +02:00
Philip Whitehouse
0d339ef56c
SMTP: Test sendMessage
2016-10-19 09:56:16 +02:00
Philip Whitehouse
215cbb6d9a
SMTP: Testing SmtpTransport using new MockSmtpServer
2016-10-19 09:56:16 +02:00
cketti
61662c5b4a
Don't use numerals in test names
2016-10-19 09:38:41 +02:00
cketti
89212cd10c
Use okio's Buffer instead of ByteArrayOutputStream
2016-10-19 09:33:06 +02:00
cketti
1a60a91ddf
Stop using "result" as variable name to store result of tested method
2016-10-19 09:31:30 +02:00
cketti
6caada1b48
Fix warnings
2016-10-19 09:31:30 +02:00
cketti
f9853dce08
Code style fixes
2016-10-19 09:19:48 +02:00
Jan Berkel
7956c3aa83
Merge pull request #1654 from philipwhiuk/imapTesting
...
IMAP: Tests for fetchPart and other uncovered areas of code
2016-10-19 08:30:27 +02:00
Philip Whitehouse
2feb367de1
Changes from code review by jberkel
2016-10-19 01:34:05 +01:00
Jan Berkel
6b76a727e2
On my system this test fails with SocketTimeoutException
2016-10-18 13:52:23 +02:00
Philip Whitehouse
10b46e2f49
Reformat to match coding standards
2016-10-13 23:14:40 +01:00
Philip Whitehouse
dfc3212ca5
IMAP: Finish test when index 1 passed to areMoreMessagesAvailable
2016-10-13 23:06:44 +01:00
Philip Whitehouse
0a7de4b645
IMAP: Add proper test for fetchPart()
2016-10-13 23:06:44 +01:00
Philip Whitehouse
9a6009d8d4
IMAP: Test coverage improvements
2016-10-13 23:06:44 +01:00
Philip Whitehouse
8b4fc30f4a
IMAP: Clarify location of unimplemented functionality
2016-10-13 23:06:44 +01:00
cketti
96216e6d44
Fix bug in TextBody.getSize()
2016-08-20 01:20:32 +02:00
cketti
71dca79726
Add test to demonstrate bug in TextBody.getSize()
2016-08-20 01:19:40 +02:00
Vincent Breitmoser
042fc3de6d
remove 8bit encoding tests
2016-08-19 22:21:43 +02:00
Vincent Breitmoser
674cd3bf5a
remove 7 bit reencoding routines
2016-08-19 22:21:42 +02:00
Vincent Breitmoser
1c837930c8
encode textual bodies as quoted printable by default
2016-08-16 12:23:43 +02:00
Vincent Breitmoser
08ef3d5ce5
clean up TextBody, make it slightly more failfast
...
Previously, TextBody supported only 8bit or quoted printable encodings,
defaulting to quoted printable if the encoding was not equal to "8bit".
This behavior is now changed to throw a runtime exception when an
unsupported encoding has been selected. The `setEncoding` method also
throws if an unsupported encoding is selected.
2016-08-16 12:21:09 +02:00
cketti
b0e5912891
Merge pull request #1414 from k9mail/build_speed_improvements
...
Build speed improvements
2016-08-16 01:38:13 +02:00
cketti
716432c82f
Increase timeouts for ImapConnectionTest
2016-08-16 01:30:25 +02:00
cketti
1cc7c499f9
Merge pull request #1553 from k9mail/message-builder-tests
...
MessageBuilder refactorings for tests
2016-08-16 00:02:49 +02:00
cketti
411ec0ec34
Use 'newInstance' as name for static factory methods
2016-08-15 11:48:36 +02:00
cketti
84cef1d8b1
Get rid of trivial static factory methods
2016-08-15 11:42:47 +02:00
cketti
a7abf62dc1
Add tests for BoundaryGenerator
2016-08-15 11:26:02 +02:00
cketti
c234578271
Don't inject BoundaryGenerator into MimeMultipart
2016-08-15 11:14:38 +02:00
cketti
7719153cc0
Extract code to generate Message-Id header value
...
This moves Message closer to being a dumb data class and avoids having to
pass around a UuidGenerator reference.
2016-08-15 10:22:17 +02:00
cketti
0c61ba2e66
Merge pull request #1564 from ligi/addEspass
...
Add esPass MIME type
2016-08-14 23:21:58 +02:00
ligi
00ff1d4789
Add esPass MIME type
2016-08-14 15:17:00 +02:00
Vincent Breitmoser
4d9283f124
construct MessageBuilder classes in factory methods
2016-08-10 14:49:12 +02:00