package org.apache.maven.shared.filtering;

import junit.framework.TestCase;

public class FilteringUtilsTest
    extends TestCase
{
    
    public void testEscapeWindowsPathStartingWithDrive()
    {
        assertEquals( "C:\\\\Users\\\\Administrator", FilteringUtils.escapeWindowsPath( "C:\\Users\\Administrator" ) );
    }
    
    public void testEscapeWindowsPathStartingWithDrivelessAbsolutePath()
    {
        assertEquals( "\\\\Users\\\\Administrator", FilteringUtils.escapeWindowsPath( "\\Users\\Administrator" ) );
    }
    
    public void testEscapeWindowsPathStartingWithExpression()
    {
        assertEquals( "${pathExpr}\\\\Documents", FilteringUtils.escapeWindowsPath( "${pathExpr}\\Documents" ) );
    }

}

