use of org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BaseSynchronizer.MoveColumnToMetaData in project drools-wb by kiegroup.
the class AttributeColumnSynchronizerTest method checkHandlesMoveColumnsToWithMultipleMetadata.
@Test
public void checkHandlesMoveColumnsToWithMultipleMetadata() throws VetoException {
final MoveColumnToMetaData md0 = mock(MoveColumnToMetaData.class);
final MoveColumnToMetaData md1 = mock(MoveColumnToMetaData.class);
final AttributeColumnSynchronizer synchronizer = new AttributeColumnSynchronizer();
when(md0.getColumn()).thenReturn(mock(AttributeCol52.class));
when(md1.getColumn()).thenReturn(mock(AttributeCol52.class));
assertFalse(synchronizer.handlesMoveColumnsTo(Arrays.asList(md0, md1)));
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BaseSynchronizer.MoveColumnToMetaData in project drools-wb by kiegroup.
the class AttributeColumnSynchronizerTest method checkHandlesMoveColumnsToWithSingleMetadata.
@Test
public void checkHandlesMoveColumnsToWithSingleMetadata() throws VetoException {
final MoveColumnToMetaData md0 = mock(MoveColumnToMetaData.class);
final AttributeColumnSynchronizer synchronizer = new AttributeColumnSynchronizer();
when(md0.getColumn()).thenReturn(mock(AttributeCol52.class));
assertTrue(synchronizer.handlesMoveColumnsTo(Collections.singletonList(md0)));
}
Aggregations