public void testShowContentForPostShipment() {
dialogFixture.requireVisible();
dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
// dialogFixture.checkBox("CheckBoxFilter").uncheck();
JTableFixture tableFixture = dialogFixture
.table(TableEnum.TABLEPRODUCTIONOVERVIEW.getTableName());
int row = -1;
boolean postShipmentNotFound = true;
Transportable transportable = null;
int maxRow = tableFixture.target.getRowCount();
while (postShipmentNotFound && row < maxRow - 1) {
row++;
transportable = ((ProductionOverviewTableModel) tableFixture.target
.getModel()).getObjectAtRow(row);
if (transportable instanceof PostShipment) {
postShipmentNotFound = false;
}
}
assertEquals(false, postShipmentNotFound);
if (!postShipmentNotFound) {
((JXTable) tableFixture.target).scrollRowToVisible(row);
tableFixture.cell(row(row).column(2)).click();
tableFixture.cell(row(row).column(2)).rightClick();
JPopupMenuFixture popupMenuFixture = new JPopupMenuFixture(
dialogFixture.robot, (JPopupMenu) dialogFixture.robot
.finder().findByName("PopupMenuProduction"));
popupMenuFixture.menuItem("MenuItemShowContent").click();