Code example for PopupWindow

Methods: isShowing

0
 
    @Test 
    public void testShowing() { 
      shadowOf(popupWindow).setShowing(true);
 
      assertTrue(popupWindow.isShowing());
    } 
 
    @Test 
    public void testDismiss() { 
      shadowOf(popupWindow).setShowing(true);
 
      assertTrue(popupWindow.isShowing());
 
      popupWindow.dismiss();
 
      assertFalse(popupWindow.isShowing());
    } 
 
    @SuppressWarnings("RedundantCast") //For some reason this is needed because of a compile error without it 
    @Test