Package org.jnode.test.support

Examples of org.jnode.test.support.MockInitializer


                                                                   byte[] src, int srcOffset) {
        Class<?>[] argCls = new Class[]{int.class, Geometry.class, CHS.class, int.class, boolean.class, int.class,
            byte[].class, int.class};
        Object[] args = new Object[]{new Integer(drive), geometry, chs, new Integer(currentSectorSize),
            Boolean.valueOf(b), new Integer(gap1Size), src, new Integer(srcOffset)};
        MockInitializer initializer = new MockInitializer() {
            public void init(Mock mockCmd) {
                mockCmd.expects(testCase.atLeastOnce()).method("hasError").withNoArguments().
                    will(new ReturnStub(Boolean.FALSE));
            }
        };
View Full Code Here


    }

    public FloppyIdCommand createFloppyIdCommand(int drive) {
        Class<?>[] argCls = new Class[]{int.class};
        Object[] args = new Object[]{new Integer(drive)};
        MockInitializer initializer = new MockInitializer() {
            public void init(Mock mockCmd) {
                mockCmd.expects(testCase.atLeastOnce()).method("hasError").withNoArguments().
                    will(new ReturnStub(Boolean.FALSE));

                Integer sectorSizeIdx = new Integer(2); //FloppyConstants.SECTOR_LENGTH[2]=512
View Full Code Here

TOP

Related Classes of org.jnode.test.support.MockInitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.