1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-16 23:20:16 -05:00

fix tests on JVM

This commit is contained in:
Art O Cathain 2014-10-11 12:09:41 +01:00
parent 7945aab8a7
commit 668ee71b6c
3 changed files with 5 additions and 2 deletions

View File

@ -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
View File

View 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>";
}
}