JDateChooser productionDate = (JDateChooser) dialogFixture.robot
.finder().findByName("DateChooserProduction");
productionDate.setDate(Calendar.getInstance().getTime());
JButtonFixture addCostButton = editDialog.button("ButtonAddCost");
addCostButton.click();
DialogFixture kostnadDialog = new DialogFixture(dialogFixture.robot,
(JDialog) dialogFixture.robot.finder().findByName(
"OrderCostView"));
kostnadDialog.comboBox("ComboBoxCostType").selectItem("Egenproduksjon");
kostnadDialog.comboBox("ComboBoxCostUnit").selectItem("Kunde");
kostnadDialog.textBox("TextFieldAmount").enterText("100");
kostnadDialog.button("OkOrderCost").click();
addCostButton.click();
kostnadDialog = new DialogFixture(dialogFixture.robot,
(JDialog) dialogFixture.robot.finder().findByName(
"OrderCostView"));
kostnadDialog.comboBox("ComboBoxCostType").selectItem("Frakt");
kostnadDialog.comboBox("ComboBoxCostUnit").selectItem("Kunde");
kostnadDialog.textBox("TextFieldAmount").enterText("200");
kostnadDialog.button("OkOrderCost").click();
addCostButton.click();
kostnadDialog = new DialogFixture(dialogFixture.robot,
(JDialog) dialogFixture.robot.finder().findByName(
"OrderCostView"));
kostnadDialog.comboBox("ComboBoxCostType").selectItem("Montering");