Package org.openbel.framework.core.protocol.handler

Examples of org.openbel.framework.core.protocol.handler.FileProtocolHandler


        }

        ProtocolHandler protocolHandler = null;
        switch (supportedProtocol) {
        case FILE:
            protocolHandler = new FileProtocolHandler();
            break;
        case HTTP:
            protocolHandler = new HttpProtocolHandler();
            break;
        case HTTPS:
View Full Code Here


     */
    @Test
    public void testRelativeFilePath() {
        try {
            File f =
                    new FileProtocolHandler().downloadResource("file:"
                            + TEST_FILE_PATH, "test.belns");
            tempFiles.add(f);
        } catch (Exception e) {
            Assert.fail("Error reading relative file path: " + e.getMessage());
        }
View Full Code Here

    @Test
    public void testAbsoluteFilePath() {
        try {
            String canonicalPath = new File(".").getCanonicalPath();
            File f =
                    new FileProtocolHandler().downloadResource("file:"
                            + canonicalPath + "/" + TEST_FILE_PATH,
                            "test.belns");
            tempFiles.add(f);
        } catch (Exception e) {
            Assert.fail("Error reading relative file path: " + e.getMessage());
View Full Code Here

TOP

Related Classes of org.openbel.framework.core.protocol.handler.FileProtocolHandler

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.