Package org.jnode.test.fs.driver

Examples of org.jnode.test.fs.driver.BlockDeviceAPIContext


    }

    public void init(TestConfig config, MockObjectTestCase testCase) throws Exception {
        super.init(config, testCase);

        BlockDeviceAPIContext parentCtx = createParentBlockDeviceAPI();
        BlockDeviceAPI api = new BlockAlignmentSupport(parentCtx.getApi(), 512);
        init(parentCtx, api, null);
    }
View Full Code Here


    }

    public IBMPartitionTable createIBMPartitionTable(byte[] bs, Device dev) {
        MockInitializer initializer = new MockInitializer() {
            public void init(Mock mockTable) {
                final BlockDeviceAPIContext context = (BlockDeviceAPIContext) ContextManager
                    .getInstance().getContext();
                final Partition[] parts = context.getPartitions();
                log.debug("with " + parts.length + " partitions");

                Integer nbParts = new Integer(parts.length);
                mockTable.expects(testCase.atLeastOnce()).method("getLength")
                    .withNoArguments().will(new ReturnStub(nbParts));
View Full Code Here

TOP

Related Classes of org.jnode.test.fs.driver.BlockDeviceAPIContext

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.