Package org.jnode.test.fs.driver

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


        // create stub resource manager
        MockObjectFactory.createResourceManager(testCase);

        // create stub IDE device
        Device parent = MockObjectFactory.createParentDevice();
        BlockDeviceAPITestConfig cfg = (BlockDeviceAPITestConfig) config;
        IDEDevice device = MockObjectFactory.createIDEDevice(parent, testCase, true, cfg.getDeviceSize());

        init(null, driver, device);
    }
View Full Code Here


    }

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

        BlockDeviceAPITestConfig cfg = (BlockDeviceAPITestConfig) config;
        String name = "RamDiskDevice-Tests";
        final RamDiskDevice device =
            new RamDiskDevice(StubDeviceManager.INSTANCE.getSystemBus(), name, cfg.getDeviceSize());
        final RamDiskDriver driver = new RamDiskDriver(name);
        init(null, driver, device);
    }
View Full Code Here

    }

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

        BlockDeviceAPITestConfig cfg = (BlockDeviceAPITestConfig) config;
        ByteArrayDevice device = new ByteArrayDevice(new byte[cfg.getDeviceSize()]);
        init(null, device, null);
    }
View Full Code Here

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

        Device parent = MockObjectFactory.createParentDevice();
        BlockDeviceAPITestConfig cfg = (BlockDeviceAPITestConfig) config;
        MappedBlockDeviceSupport api = new MappedBlockDeviceSupport(parent, 0L, cfg.getDeviceSize());
        init(null, api, null);
    }
View Full Code Here

TOP

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

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.