@After public void tearDown() { assertFalse(ShadowAccessibilityNodeInfoCompat.areThereUnrecycledNodes(true)); ShadowAccessibilityNodeInfo.resetObtainedInstances(); }
@Before public void setUp() { /* Make sure isVisibleOrLegacy doesn't return false due to legacy */ ReflectionHelpers.setStaticField(Build.VERSION.class, "SDK_INT", 18); ShadowAccessibilityNodeInfo.resetObtainedInstances(); }