executeTarget("testStatus"); File file = new File(WORKINGCOPY_DIR+"/statusTest/added.txt"); ISVNInfo info = svnClient.getInfo(file); assertEquals(SVNNodeKind.FILE,info.getNodeKind()); assertNull(info.getLastChangedRevision()); assertEquals(SVNScheduleKind.ADD,info.getSchedule()); assertEquals(file.getCanonicalFile(),info.getFile().getCanonicalFile());
expectBuildException("testInfoNoAttributes", "Dir or file must be set."); expectBuildException("testInfoBadFile", "fakefile.txt:  (Not a versioned resource)");
    public void testInfo() throws Exception {		executeTarget("testStatus");        File file = new File(WORKINGCOPY_DIR+"/statusTest/added.txt");		ISVNInfo info = svnClient.getInfo(file);		assertEquals(SVNNodeKind.FILE,info.getNodeKind());        assertNull(info.getLastChangedRevision());        assertEquals(SVNScheduleKind.ADD,info.getSchedule());        assertEquals(file.getCanonicalFile(),info.getFile().getCanonicalFile());                file = new File("nonExistingFile");        info = svnClient.getInfo(file);        assertEquals(null, info.getUrl());        // make sure that the top most directory is said to be versionned. It is in a directory where there is no        // .svn directory but it is versionned however.         file = new File(WORKINGCOPY_DIR+"/statusTest/nonManaged.dir/statusTest");        info = svnClient.getInfo(file);        assertEquals(SVNNodeKind.DIR,info.getNodeKind());    }