remove unused code
This commit is contained in:
parent
5a88283344
commit
b42167666f
|
@ -122,26 +122,4 @@ class WearUtilTest : TestBase() {
|
||||||
Assert.assertFalse(callTooSoon)
|
Assert.assertFalse(callTooSoon)
|
||||||
Assert.assertTrue(callAfterRateLimit)
|
Assert.assertTrue(callAfterRateLimit)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* It tests if mock for bundleToDataMap is sane,
|
|
||||||
* because original impl. of bundleToDataMap
|
|
||||||
* uses DataMap.fromBundle which need Android SDK runtime
|
|
||||||
*/
|
|
||||||
@Test
|
|
||||||
fun bundleToDataMapTest() {
|
|
||||||
// GIVEN
|
|
||||||
val refMap = DataMap()
|
|
||||||
refMap.putString("ala", "ma kota")
|
|
||||||
refMap.putInt("why", 42)
|
|
||||||
refMap.putFloatArray("list", floatArrayOf(0.45f, 3.2f, 6.8f))
|
|
||||||
|
|
||||||
// WHEN
|
|
||||||
wearUtilMocker.prepareMockNoReal()
|
|
||||||
val bundle = BundleMock.mock(refMap)
|
|
||||||
val gotMap = wearUtil.bundleToDataMap(bundle)
|
|
||||||
|
|
||||||
// THEN
|
|
||||||
Assert.assertEquals(gotMap, refMap)
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue