Merge "Fix multiple runs of bubbles persister test" into tm-qpr-dev am: e2acffb79a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19391484 Change-Id: I97eefc11591ff594da60aa22ad73df3824fbf6f2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import com.android.wm.shell.bubbles.storage.BubbleXmlHelperTest.Companion.sparse
|
|||||||
import junit.framework.Assert.assertEquals
|
import junit.framework.Assert.assertEquals
|
||||||
import junit.framework.Assert.assertNotNull
|
import junit.framework.Assert.assertNotNull
|
||||||
import junit.framework.Assert.assertTrue
|
import junit.framework.Assert.assertTrue
|
||||||
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
@@ -61,6 +62,12 @@ class BubblePersistentRepositoryTest : ShellTestCase() {
|
|||||||
bubbles.put(1, user1Bubbles)
|
bubbles.put(1, user1Bubbles)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
fun teardown() {
|
||||||
|
// Clean up the any persisted bubbles for the next run
|
||||||
|
repository.persistsToDisk(SparseArray())
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testReadWriteOperation() {
|
fun testReadWriteOperation() {
|
||||||
// Verify read before write doesn't cause FileNotFoundException
|
// Verify read before write doesn't cause FileNotFoundException
|
||||||
|
|||||||
Reference in New Issue
Block a user