summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/mail/utils
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/mail/utils')
-rw-r--r--tests/src/com/android/mail/utils/HtmlUtilsTest.java25
-rw-r--r--tests/src/com/android/mail/utils/NotificationUtilsTest.java8
2 files changed, 29 insertions, 4 deletions
diff --git a/tests/src/com/android/mail/utils/HtmlUtilsTest.java b/tests/src/com/android/mail/utils/HtmlUtilsTest.java
new file mode 100644
index 000000000..24b39076a
--- /dev/null
+++ b/tests/src/com/android/mail/utils/HtmlUtilsTest.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.mail.utils;
+
+import android.test.AndroidTestCase;
+import android.test.suitebuilder.annotation.SmallTest;
+
+@SmallTest
+public class HtmlUtilsTest extends AndroidTestCase {
+ // TODO (jin) IMPLEMENT ME
+}
diff --git a/tests/src/com/android/mail/utils/NotificationUtilsTest.java b/tests/src/com/android/mail/utils/NotificationUtilsTest.java
index 1f8c01fef..925438f69 100644
--- a/tests/src/com/android/mail/utils/NotificationUtilsTest.java
+++ b/tests/src/com/android/mail/utils/NotificationUtilsTest.java
@@ -38,9 +38,9 @@ public class NotificationUtilsTest extends AndroidTestCase {
// Get the html "tree" for this message body
final HtmlTree htmlTree = Utils.getHtmlTree(html);
- htmlTree.setPlainTextConverterFactory(new HtmlTree.PlainTextConverterFactory() {
+ htmlTree.setConverterFactory(new HtmlTree.ConverterFactory() {
@Override
- public HtmlTree.PlainTextConverter createInstance() {
+ public HtmlTree.Converter<String> createInstance() {
return new MailMessagePlainTextConverter();
}
});
@@ -65,9 +65,9 @@ public class NotificationUtilsTest extends AndroidTestCase {
// Get the html "tree" for this message body
final HtmlTree htmlTree = Utils.getHtmlTree(html);
- htmlTree.setPlainTextConverterFactory(new HtmlTree.PlainTextConverterFactory() {
+ htmlTree.setConverterFactory(new HtmlTree.ConverterFactory() {
@Override
- public HtmlTree.PlainTextConverter createInstance() {
+ public HtmlTree.Converter<String> createInstance() {
return new MailMessagePlainTextConverter();
}
});