package org.apache.commons.vfs2.provider;

import junit.framework.Assert;

import org.junit.Test;

public class UriParserTestCase
{

    @Test
    public void testColonInFileName()
    {
        Assert.assertEquals(null, UriParser.extractScheme("some/path/some:file"));
    }

    @Test
    public void testNormalScheme()
    {
        Assert.assertEquals("ftp", UriParser.extractScheme("ftp://user:pass@host/some/path/some:file"));
    }

}

Add some simple tests to make sure extract scheme behaves as expected.
Add some simple tests to make sure extract scheme behaves as expected.

git-svn-id: c455d203a03ec41bf444183aad31e7cce55db786@1237945 13f79535-47bb-0310-9956-ffa450edef68
