Examples of RAMMountFactory


Examples of org.crsh.vfs.spi.ram.RAMMountFactory

    assertFalse(in.hasNext());
    assertEquals("bar", file);
  }

  public void testMount() throws Exception {
    RAMMountFactory resolver = new RAMMountFactory();
    FS fs = new FS.Builder().register("ram", resolver).mount("ram:/;ram:/b").build();
    assertEquals(2, fs.drivers.size());
    assertInstance(RAMDriver.class, fs.drivers.get(0));
    assertInstance(RAMDriver.class, fs.drivers.get(1));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.