Merge "Clean up after test"

This commit is contained in:
TreeHugger Robot
2022-02-11 07:18:36 +00:00
committed by Android (Google) Code Review

View File

@@ -32,6 +32,7 @@ import com.android.systemui.plugins.ActivityStarter;
import com.android.systemui.statusbar.policy.ConfigurationController;
import com.android.systemui.tuner.TunerService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -66,6 +67,11 @@ public class KeyguardSliceViewControllerTest extends SysuiTestCase {
mController.setupUri(KeyguardSliceProvider.KEYGUARD_SLICE_URI);
}
@After
public void tearDown() {
mController.onViewDetached();
}
@Test
public void refresh_replacesSliceContentAndNotifiesListener() {
mController.refresh();