514515516517518519520521522523524
mockUke.maybeConfigure(); mockUke.getLocation(); ukeCtrl.setReturnValue(new Location("")); mockUke.getTask(); ukeCtrl.setReturnValue(null); mockUke.execute(); ukeCtrl.setThrowable(new BuildException()); ukeCtrl.replay(); group.addTask(mockUke); try {
592593594595596597598599600601602
mockUke.maybeConfigure(); mockUke.getLocation(); ctrl.setReturnValue(new Location("")); mockUke.getTask(); ctrl.setReturnValue(nested, 1); mockUke.execute(); if (exception != null) { ctrl.setThrowable(exception); } return mockUke; }