155156157158159160161162163
// mockFloppyDevice.expects(testCase.atLeastOnce()).method("getDriver").withNoArguments(). // will(new ReturnStub(driver)); } }; FloppySeekCommand cmd = (FloppySeekCommand) MockUtils.createMockObject(FloppySeekCommand.class, initializer, argCls, args); return cmd; }
53545556575859
FloppyParameters fp) { return new FloppyDriveParametersCommand(drive, dp, fp); } public FloppySeekCommand createFloppySeekCommand(int drive, int cylinder) { return new FloppySeekCommand(drive, cylinder); }