TemplateDataCellFactory extends AbstractCellFactory<TemplateDataColumn> { DecoratedGridCellValueAdaptor decoratedGridCellValueAdaptor(final AbstractProxyPopupDropDownEditCell pudd) { return new DecoratedGridCellValueAdaptor<>(pudd, eventBus); } TemplateDataCellFactory(AsyncPackageDataModelOracle oracle,
                                   TemplateDropDownManager dropDownManager,
                                   boolean isReadOnly,
                                   EventBus eventBus); DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(TemplateDataColumn column);  }
@Test public void testEnumHasPriorityOverListOperator() throws Exception { testEnumAndOperator(DataType.TYPE_STRING, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorNumeric() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorBigDecimal() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BIGDECIMAL, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorBigInteger() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BIGINTEGER, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorByte() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BYTE, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorDouble() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_DOUBLE, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorFloat() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_FLOAT, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorInteger() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_INTEGER, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorLong() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_LONG, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityOverListOperatorShort() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_SHORT, "in"); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupTextDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorNumeric() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericBigDecimalDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorBigDecimal() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BIGDECIMAL, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericBigDecimalDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorBigInteger() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BIGINTEGER, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericBigIntegerDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorByte() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_BYTE, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericByteDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorDouble() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_DOUBLE, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericDoubleDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorFloat() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_FLOAT, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericFloatDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorInteger() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_INTEGER, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericIntegerDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorLong() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_LONG, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericLongDropDownEditCell); }
@Test public void testEnumHasPriorityButSimpleOperatorShort() throws Exception { testEnumAndOperator(DataType.TYPE_NUMERIC_SHORT, "=="); verify(testedFactory).decoratedGridCellValueAdaptor(puddCaptor.capture()); assertTrue(puddCaptor.getValue() instanceof ProxyPopupNumericShortDropDownEditCell); }