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

Commit 664c187d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Re-enable RetailDemoModeServiceTest."

parents 66197daa 90d27195
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -71,7 +71,9 @@ import com.android.server.SystemService;
import com.android.server.retaildemo.RetailDemoModeService.Injector;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
@@ -85,6 +87,7 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

@RunWith(AndroidJUnit4.class)
@SmallTest
public class RetailDemoModeServiceTest {
    private static final int TEST_DEMO_USER = 111;
    private static final long SETUP_COMPLETE_TIMEOUT_MS = 2000; // 2 sec
@@ -111,6 +114,12 @@ public class RetailDemoModeServiceTest {
    private RetailDemoModeService mService;
    private TestInjector mInjector;

    @BeforeClass
    @AfterClass
    public static void clearSettingsProvider() {
        FakeSettingsProvider.clearSettingsProvider();
    }

    @Before
    public void setUp() throws Exception {
        MockitoAnnotations.initMocks(this);