Examples of VFSFileSystem


Examples of org.apache.commons.configuration.VFSFileSystem

      // else try a standard configuration
      if (_fileConfiguration == null)
        try
        {
          // enable VFS
          FileSystem fs = new VFSFileSystem();
          fs.setFileOptionsProvider(new FileOptionsProvider()
          {

            public Map getOptions()
            {
              Map result = new HashMap();
View Full Code Here

Examples of org.apache.commons.configuration.VFSFileSystem

    private static final String TEST_FILE = "test.properties";

    protected void setUp() throws Exception
    {
        super.setUp();
        FileSystem.setDefaultFileSystem(new VFSFileSystem());
    }
View Full Code Here

Examples of org.apache.commons.configuration.VFSFileSystem

    private static final String TEST_FILE = "test.properties";

    @Before
    public void setUp() throws Exception
    {
        FileSystem.setDefaultFileSystem(new VFSFileSystem());
    }
View Full Code Here

Examples of org.apache.commons.configuration2.io.VFSFileSystem

     */
    @Override
    protected FileBasedBuilderParameters createParameters()
    {
        FileBasedBuilderParameters params = super.createParameters();
        return params.setFileSystem(new VFSFileSystem());
    }
View Full Code Here

Examples of org.apache.commons.configuration2.io.VFSFileSystem

        File file = folder.newFile();
        writeTestFile(file, "value1");
        VFSFileHandlerReloadingDetector strategy =
                new VFSFileHandlerReloadingDetector();
        strategy.getFileHandler().setFile(file);
        strategy.getFileHandler().setFileSystem(new VFSFileSystem());
        long modificationDate = strategy.getLastModificationDate();
        assertEquals("Wrong modification date", file.lastModified(),
                modificationDate);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.io.VFSFileSystem

    @Test
    public void testLastModificationDateNonExisting()
    {
        File file = ConfigurationAssert.getOutFile("NonExistingFile.xml");
        FileHandler handler = new FileHandler();
        handler.setFileSystem(new VFSFileSystem());
        handler.setFile(file);
        VFSFileHandlerReloadingDetector strategy =
                new VFSFileHandlerReloadingDetector(handler);
        assertEquals("Got a modification date", 0,
                strategy.getLastModificationDate());
View Full Code Here

Examples of org.apache.commons.configuration2.io.VFSFileSystem

                    protected String resolveFileURI()
                    {
                        return null;
                    }
                };
        strategy.getFileHandler().setFileSystem(new VFSFileSystem());
        strategy.getFileHandler().setFileName("test.xml");
        strategy.getLastModificationDate();
    }
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.