1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Merge pull request #11 from k9mail/art/fix-tests-on-jvm

fix tests on JVM
This commit is contained in:
cketti 2014-11-11 19:46:58 +01:00
commit bd4a236525
3 changed files with 5 additions and 2 deletions

View File

@ -204,7 +204,10 @@ public class TextBodyBuilder {
return mQuotedTextHtml; return mQuotedTextHtml;
} }
private String textToHtmlFragment(String text) { /**
* protected for unit-test purposes
*/
protected String textToHtmlFragment(String text) {
return HtmlConverter.textToHtmlFragment(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. // HtmlConverter depends on Android.
// So we use dummy method for tests. // So we use dummy method for tests.
@Override @Override
public String textToHtmlFragment(String text) { protected String textToHtmlFragment(String text) {
return "<html>" + text + "</html>"; return "<html>" + text + "</html>";
} }
} }