105106107108109110111112113114115
control.setPlayer(doctor); River river; for (Place p : places) { river = new River(control, p); String ferry = river.takeFerry(); assertFalse( "Not able to take Ferry", ferry.equals("You don't have enough money to make it across!")); }
168169170171172173174175176177178
control.setPlayer(engineer); River river; for (Place p : places) { river = new River(control, p); String ferry = river.takeFerry(); assertFalse( "Not able to take Ferry", ferry.equals("You don't have enough money to make it across!")); }
231232233234235236237238239240241
control.setPlayer(entrepreneur); River river; for (Place p : places) { river = new River(control, p); String ferry = river.takeFerry(); assertFalse( "Not able to take Ferry", ferry.equals("You don't have enough money to make it across!")); }
294295296297298299300301302303304
control.setPlayer(nutritionist); River river; for (Place p : places) { river = new River(control, p); String ferry = river.takeFerry(); assertFalse( "Not able to take Ferry", ferry.equals("You don't have enough money to make it across!")); }
919293949596979899100101
if(crossMethods.getText().equals("Take Ferry")) { try { river.takeFerry(); done = true; } catch(InsufficientFundsException f) { lblCross.setText("We're too poor for that, pick another way across.");