mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Merge pull request #11 from k9mail/art/fix-tests-on-jvm
fix tests on JVM
This commit is contained in:
commit
bd4a236525
@ -204,7 +204,10 @@ public class TextBodyBuilder {
|
||||
return mQuotedTextHtml;
|
||||
}
|
||||
|
||||
private String textToHtmlFragment(String text) {
|
||||
/**
|
||||
* protected for unit-test purposes
|
||||
*/
|
||||
protected String textToHtmlFragment(String text) {
|
||||
return HtmlConverter.textToHtmlFragment(text);
|
||||
}
|
||||
|
||||
|
0
tests-on-jvm/gradlew
vendored
Normal file → Executable file
0
tests-on-jvm/gradlew
vendored
Normal file → Executable file
@ -44,7 +44,7 @@ class TestingTextBodyBuilder extends TextBodyBuilder {
|
||||
// HtmlConverter depends on Android.
|
||||
// So we use dummy method for tests.
|
||||
@Override
|
||||
public String textToHtmlFragment(String text) {
|
||||
protected String textToHtmlFragment(String text) {
|
||||
return "<html>" + text + "</html>";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user