96979899100101102103104105106
public void init(Mock mockFDC) { Integer nbStubFloppy = new Integer(1); mockFDC.expects(testCase.once()).method("getDriveCount").withNoArguments(). will(new ReturnStub(nbStubFloppy)); FloppyDriveParameters drvParams = createFloppyDriveParameters(); mockFDC.expects(testCase.atLeastOnce()).method("getDriveParams").withAnyArguments(). will(new ReturnStub(drvParams)); Boolean diskChanged = Boolean.FALSE; mockFDC.expects(testCase.atLeastOnce()).method("diskChanged").withAnyArguments().
125126127128129130131
FloppyParameters[] fp = { //new FloppyParameters(new Geometry(16, 16, 16), 0, 0, 0, "16x16x16") new FloppyParameters(new Geometry(2, 2, 2), 0, 0, 0, "2x2x2") }; return new FloppyDriveParameters(cmosType, 0, 0, 0, 0, "StubFloppyParam", fp); }