ColumnUtilities extends ColumnUtilitiesBase { public static void setColumnLabelStyleWhenHidden(final ColumnLabelWidget label, final boolean isHidden) { if (isHidden) { label.addStyleName(GuidedDecisionTableResources.INSTANCE.css().columnLabelHidden()); } else { label.removeStyleName(GuidedDecisionTableResources.INSTANCE.css().columnLabelHidden()); } } ColumnUtilities(final GuidedDecisionTable52 model,
                           final AsyncPackageDataModelOracle oracle); static void setColumnLabelStyleWhenHidden(final ColumnLabelWidget label,
                                                     final boolean isHidden); static boolean canAcceptOtherwiseValues(final BaseColumn column); String[] getValueList(final BaseColumn col); boolean hasValueList(final AttributeCol52 col);  }
@Test public void testSetColumnLabelStyleWhenHiddenPositive() throws Exception { final ColumnLabelWidget label = mock(ColumnLabelWidget.class); ColumnUtilities.setColumnLabelStyleWhenHidden(label, true); verify(label).addStyleName(GuidedDecisionTableResources.INSTANCE.css().columnLabelHidden()); }
@Test public void testSetColumnLabelStyleWhenHiddenNegative() throws Exception { final ColumnLabelWidget label = mock(ColumnLabelWidget.class); ColumnUtilities.setColumnLabelStyleWhenHidden(label, false); verify(label).removeStyleName(GuidedDecisionTableResources.INSTANCE.css().columnLabelHidden()); }