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

Commit 3203a515 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Clear fake settings provider after the last test"

parents 0cdb7e95 25e8b7fc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ import com.android.server.statusbar.StatusBarManagerInternal;
import com.android.server.wm.utils.WmDisplayCutout;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -122,6 +123,12 @@ public class DisplayRotationTests {
        sMockWm.mPolicy = mock(WindowManagerPolicy.class);
    }

    @AfterClass
    public static void tearDownOnce() {
        // Make sure the fake settings are cleared after the last test method.
        FakeSettingsProvider.clearSettingsProvider();
    }

    @Before
    public void setUp() {
        FakeSettingsProvider.clearSettingsProvider();