DecisionTableColumnViewUtils { public static int getCurrentIndexFromListWithoutDefaultSelect(final String currentValue, final ListBox list) { for (int index = 0; index < list.getItemCount(); index++) { final String value = list.getValue(index); if (value != null && value.equals(currentValue)) { return index; } } return -1; }  static int getCurrentIndexFromList(final String currentValue,
                                              final ListBox list); static int getCurrentIndexFromListWithoutDefaultSelect(final String currentValue,
                                                                  final ListBox list); static boolean nil(String s); static void addWidgetToContainer(final IsWidget widget,
                                            final Div container); static String getColumnManagementGroupTitle(final BaseColumn column);  }
@Test public void testGetIndexWithoutDefaultSelectNull() throws Exception { assertEquals(-1, DecisionTableColumnViewUtils.getCurrentIndexFromListWithoutDefaultSelect(null, listBox)); }
@Test public void testGetIndexWithoutDefaultSelectEmpty() throws Exception { assertEquals(-1, DecisionTableColumnViewUtils.getCurrentIndexFromListWithoutDefaultSelect("", listBox)); }
@Test public void testGetIndexWithoutDefaultSelectPlaceholder() throws Exception { assertEquals(0, DecisionTableColumnViewUtils.getCurrentIndexFromListWithoutDefaultSelect(PLEASE_CHOOSE, listBox)); }
@Test public void testGetIndexWithoutDefaultSelectFirstOption() throws Exception { assertEquals(1, DecisionTableColumnViewUtils.getCurrentIndexFromListWithoutDefaultSelect(FIRST_OPTION, listBox)); }
@Test public void testGetIndexWithoutDefaultSelectSecondOption() throws Exception { assertEquals(2, DecisionTableColumnViewUtils.getCurrentIndexFromListWithoutDefaultSelect(SECOND_OPTION, listBox)); }