summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2018-06-21 14:03:08 -0700
committerJon Miranda <jonmiranda@google.com>2018-06-21 14:04:52 -0700
commit1aaaac834347cf8b99403d79a9fae80d7d0173d4 (patch)
tree13bb1a507ea00d00e39a8748872fd6883648ea5b /tests
parente45b3e21a95e40168a35c4bcd0f425ba2e56bc11 (diff)
downloadandroid_packages_apps_Trebuchet-1aaaac834347cf8b99403d79a9fae80d7d0173d4.tar.gz
android_packages_apps_Trebuchet-1aaaac834347cf8b99403d79a9fae80d7d0173d4.tar.bz2
android_packages_apps_Trebuchet-1aaaac834347cf8b99403d79a9fae80d7d0173d4.zip
Add @Test and @Ignore to untested test methods.
Error prone complains when trying to merge launcher3 code to platform pi-dev. "This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility." Change-Id: I95f55b95d8f7752c9c941f0828ca22d6427528c6
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java b/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java
index 6c712f46c..b55711934 100644
--- a/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java
+++ b/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java
@@ -49,6 +49,7 @@ import com.android.launcher3.widget.WidgetHostViewLoader;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -122,6 +123,7 @@ public class BindWidgetTest extends AbstractLauncherUiTest {
setupAndVerifyContents(item, LauncherAppWidgetHostView.class, info.label);
}
+ @Test @Ignore
public void testUnboundWidget_removed() throws Exception {
LauncherAppWidgetProviderInfo info = findWidgetProvider(false);
LauncherAppWidgetInfo item = createWidgetInfo(info, false);
@@ -176,6 +178,7 @@ public class BindWidgetTest extends AbstractLauncherUiTest {
LauncherSettings.Favorites.APPWIDGET_ID))));
}
+ @Test @Ignore
public void testPendingWidget_notRestored_removed() throws Exception {
LauncherAppWidgetInfo item = getInvalidWidgetInfo();
item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID