Search in sources :

Example 1 with MoveColumnToMetaData

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)));
}
Also used : AttributeCol52(org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52) MoveColumnToMetaData(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BaseSynchronizer.MoveColumnToMetaData) Test(org.junit.Test)

Example 2 with MoveColumnToMetaData

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)));
}
Also used : AttributeCol52(org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52) MoveColumnToMetaData(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BaseSynchronizer.MoveColumnToMetaData) Test(org.junit.Test)

Aggregations

AttributeCol52 (org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52)2 MoveColumnToMetaData (org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.BaseSynchronizer.MoveColumnToMetaData)2 Test (org.junit.Test)2