Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1aaaac83 authored by Jon Miranda's avatar Jon Miranda
Browse files

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
parent e45b3e21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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