SingleFieldConstraintOperatorSelector { static boolean isWidgetForValueNeeded(final String constraintOperator) { return constraintOperator != null && !constraintOperator.isEmpty() && !Objects.equals(constraintOperator, HumanReadableConstants.INSTANCE.isEqualToNull()) && !Objects.equals(constraintOperator, HumanReadableConstants.INSTANCE.isNotEqualToNull()); }  void configure(final SingleFieldConstraint constraint,
                          final Supplier<ConstraintValueEditor> constraintValueEditor,
                          final Function<SingleFieldConstraint, ConstraintValueEditor> constraintValueEditorProducer,
                          final FactPatternWidget parent,
                          final HorizontalPanel placeholderForDropdown,
                          final FlexTable constraintValueEditorWrapper,
                          final int constraintValueEditorRowIndex,
                          final int constraintValueEditorColumnIndex,
                          final AsyncPackageDataModelOracle oracle);  }
@Test public void testIsWidgetForValueNeededIsNull() throws Exception { final String operator = HumanReadableConstants.INSTANCE.isEqualToNull(); Assertions.assertThat(testedSelector.isWidgetForValueNeeded(operator)).isFalse(); }
@Test public void testIsWidgetForValueNeededIsNotNull() throws Exception { final String operator = HumanReadableConstants.INSTANCE.isNotEqualToNull(); Assertions.assertThat(testedSelector.isWidgetForValueNeeded(operator)).isFalse(); }
@Test public void testIsWidgetForValueNeededEmpty() throws Exception { final String operator = ""; Assertions.assertThat(testedSelector.isWidgetForValueNeeded(operator)).isFalse(); }
@Test public void testIsWidgetForValueNeededIsEqualtTo() throws Exception { final String operator = HumanReadableConstants.INSTANCE.isEqualTo(); Assertions.assertThat(testedSelector.isWidgetForValueNeeded(operator)).isTrue(); }