expected = new SVNUrl("http: rootUrl = new SVNUrl("http: rootPath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir"; filePath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir"; assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));
    public void testGetUrlFromLocalFileName() throws Exception {        SVNUrl rootUrl = new SVNUrl("http://svn.collab.net:81/repos/mydir");        String rootPath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir";        String filePath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir\\mydir2\\myFile.txt";        SVNUrl expected = new SVNUrl("http://svn.collab.net:81/repos/mydir/mydir2/myFile.txt");        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));        rootUrl = new SVNUrl("http://svn.collab.net:81/repos/mydir/");        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));        rootPath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir\\";        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));        rootUrl = new SVNUrl("http://svn.collab.net:81/repos/mydir");        rootPath = "C:/Documents and Settings/User/My Documents/Eclipse/mydir";        filePath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir\\mydir2\\myFile.txt";        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));        rootPath = "C:\\Documents and Settings\\User\\My Documents\\Eclipse\\mydir";        filePath = "C:/Documents and Settings/User/My Documents/Eclipse/mydir/mydir2/myFile.txt";        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));        rootPath = "C:/Documents and Settings/User/My Documents/Eclipse/mydir/";        assertEquals(expected,SVNUrlUtils.getUrlFromLocalFileName(filePath, rootUrl, rootPath));    }