예제 #1
0
 @Test
 public void testGetVisibleItemCount_ReturnInitialValue() {
   assertEquals(5, dropDown.getVisibleItemCount());
 }
예제 #2
0
  @Test
  public void testGetVisibleItemCount_ReturnUserValue() {
    dropDown.setVisibleItemCount(23);

    assertEquals(23, dropDown.getVisibleItemCount());
  }
예제 #3
0
 @Test(expected = SWTException.class)
 public void testGetVisibleItemCount_ThrowsExceptionIfDisposed() {
   dropDown.dispose();
   dropDown.getVisibleItemCount();
 }