DataLayerFixture dataLayer = new DataLayerFixture();
// Indexes re-ordered: 4 1 0 2 3
ColumnReorderLayer reorderLayerFixture = new ColumnReorderLayerFixture(
dataLayer);
MultiColumnResizeCommand resizeCommand = new MultiColumnResizeCommand(
reorderLayerFixture, new int[] { 1, 2 }, new int[] { 100, 150 });
reorderLayerFixture.doCommand(resizeCommand);
// As the Commands goes down the stack - positions might get converted
// to entirely different values.
Assert.assertEquals(-1, resizeCommand.getCommonColumnWidth());
Assert.assertEquals(-1, resizeCommand.getColumnWidth(5));
Assert.assertEquals(-1, resizeCommand.getColumnWidth(12));
Assert.assertEquals(100, resizeCommand.getColumnWidth(1));
Assert.assertEquals(150, resizeCommand.getColumnWidth(0));
}