Lines 46-59
Link Here
|
46 |
import java.io.IOException; |
46 |
import java.io.IOException; |
47 |
import java.io.OutputStream; |
47 |
import java.io.OutputStream; |
48 |
|
48 |
|
49 |
import org.netbeans.modules.versioning.Utils; |
|
|
50 |
import org.openide.filesystems.FileObject; |
49 |
import org.openide.filesystems.FileObject; |
51 |
import org.openide.filesystems.FileUtil; |
50 |
import org.openide.filesystems.FileUtil; |
52 |
import org.openide.filesystems.FileLock; |
51 |
import org.openide.filesystems.FileLock; |
53 |
import org.openide.util.Lookup; |
52 |
import org.openide.util.Lookup; |
54 |
import org.netbeans.modules.versioning.spi.testvcs.TestVCS; |
53 |
import org.netbeans.modules.versioning.spi.testvcs.TestVCS; |
55 |
import org.netbeans.modules.versioning.spi.testvcs.TestVCSInterceptor; |
54 |
import org.netbeans.modules.versioning.spi.testvcs.TestVCSInterceptor; |
56 |
import org.netbeans.junit.NbTestCase; |
55 |
import org.openide.filesystems.FileChangeAdapter; |
57 |
|
56 |
|
58 |
/** |
57 |
/** |
59 |
* Versioning SPI unit tests of VCSInterceptor. |
58 |
* Versioning SPI unit tests of VCSInterceptor. |
Lines 133-138
Link Here
|
133 |
assertFalse(battr); |
132 |
assertFalse(battr); |
134 |
} |
133 |
} |
135 |
|
134 |
|
|
|
135 |
public void testRefreshRecursively() throws IOException { |
136 |
File f = new File(dataRootDir, "workdir/root-test-versioned"); |
137 |
f.mkdirs(); |
138 |
FileObject fo = FileUtil.toFileObject(f); |
139 |
fo = fo.createFolder("folder"); |
140 |
fo.addRecursiveListener(new FileChangeAdapter()); |
141 |
assertTrue(inteceptor.getRefreshRecursivelyFiles().contains(FileUtil.toFile(fo))); |
142 |
} |
143 |
|
136 |
public void testChangedFile() throws IOException { |
144 |
public void testChangedFile() throws IOException { |
137 |
File f = new File(dataRootDir, "workdir/root-test-versioned"); |
145 |
File f = new File(dataRootDir, "workdir/root-test-versioned"); |
138 |
FileObject fo = FileUtil.toFileObject(f); |
146 |
FileObject fo = FileUtil.toFileObject(f); |