Reset SafetyCenterManagerWrapper instance between tests.

This is because some other tests may set a mock on this static value, which will persist across test cases (whereas in this test we want to test the real thing).

Bug: 335557039
Change-Id: I14fc81922761159241636c78dbd47fce7bfeb533
Test: atest SafetyCenterManagerWrapperTest
This commit is contained in:
Elliot Sisteron
2024-04-22 14:49:52 +00:00
parent 5ae84662b5
commit 365c16b217

View File

@@ -40,6 +40,7 @@ public class SafetyCenterManagerWrapperTest {
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
SafetyCenterManagerWrapper.sInstance = null;
}
@Test