1 package unit.ui.controllers.device_setup_controller.handle_go_button_clicked;
3 import org.jetbrains.annotations.Contract;
7 import static org.junit.Assert.assertEquals;
16 public void clickGoButton(){
19 portSelector.getSelectionModel().getSelectedItem()
22 clickOn(queryForGoButton);
25 @Contract(
" -> !null")
28 return new HappyPathExpectations();
32 public HappyPathExpectations(){
35 expectationsForGetPowerSupply();
38 private void expectationsForGetPowerSupply(){
40 oneOf(factory).makePowerSupply();
41 oneOf(pressureGaugeFactory).makePressureGauge();
42 }
catch (Exception error){
43 error.printStackTrace();