AttributeColumnConfigRowView extends HorizontalPanel { public CheckBox addReverseOrderCheckBox(AttributeCol52 attributeColumn, boolean isEditable, ClickHandler clickHandler) { final CheckBox chkReverseOrder = new CheckBox(GuidedDecisionTableConstants.INSTANCE.ReverseOrder()); chkReverseOrder.setValue(attributeColumn.isReverseOrder()); chkReverseOrder.setEnabled(attributeColumn.isUseRowNumber() && isEditable); chkReverseOrder.addClickHandler(clickHandler); add(chkReverseOrder); return chkReverseOrder; } AttributeColumnConfigRowView(); @Inject  AttributeColumnConfigRowView(final DeleteColumnManagementAnchorWidget deleteColumnManagementAnchorWidget); void addRemoveAttributeButton(final Command clickHandler,
                                         final boolean isEditable); void addColumnLabel(AttributeCol52 attributeColumn); void addDefaultValue(AttributeCol52 attributeColumn,
                                boolean isEditable,
                                DefaultValueWidgetFactory.DefaultValueChangedEventHandler handler); CheckBox addUseRowNumberCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addReverseOrderCheckBox(AttributeCol52 attributeColumn,
                                            boolean isEditable,
                                            ClickHandler clickHandler); CheckBox addHideColumnCheckBox(AttributeCol52 attributeColumn,
                                          ClickHandler clickHandler);  }
@Test public void testAddReverseOrderCheckBox() throws Exception { view.addReverseOrderCheckBox(attributeColumn, true, null); verify(view).add(widgetCaptor.capture()); assertTrue(widgetCaptor.getValue() instanceof CheckBox); }