From 1aaaac834347cf8b99403d79a9fae80d7d0173d4 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Thu, 21 Jun 2018 14:03:08 -0700 Subject: [PATCH] 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 --- tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java b/tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java index 6c712f46cc..b55711934f 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