Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestFileFlags.java @ 490:b3c16d1aede0
Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 16 Aug 2012 17:08:34 +0200 |
parents | 59b7c817bc4d |
children | e1b29756f901 |
comparison
equal
deleted
inserted
replaced
489:9c0138cda59a | 490:b3c16d1aede0 |
---|---|
26 import org.junit.Rule; | 26 import org.junit.Rule; |
27 import org.junit.Test; | 27 import org.junit.Test; |
28 import org.tmatesoft.hg.internal.Internals; | 28 import org.tmatesoft.hg.internal.Internals; |
29 import org.tmatesoft.hg.internal.RelativePathRewrite; | 29 import org.tmatesoft.hg.internal.RelativePathRewrite; |
30 import org.tmatesoft.hg.repo.HgDataFile; | 30 import org.tmatesoft.hg.repo.HgDataFile; |
31 import org.tmatesoft.hg.repo.HgInternals; | |
32 import org.tmatesoft.hg.repo.HgManifest.Flags; | 31 import org.tmatesoft.hg.repo.HgManifest.Flags; |
33 import org.tmatesoft.hg.repo.HgRepository; | 32 import org.tmatesoft.hg.repo.HgRepository; |
34 import org.tmatesoft.hg.util.FileInfo; | 33 import org.tmatesoft.hg.util.FileInfo; |
35 import org.tmatesoft.hg.util.FileWalker; | 34 import org.tmatesoft.hg.util.FileWalker; |
36 import org.tmatesoft.hg.util.Path; | 35 import org.tmatesoft.hg.util.Path; |
64 | 63 |
65 @Test | 64 @Test |
66 public void testFlagsInWorkingCopy() throws Exception { | 65 public void testFlagsInWorkingCopy() throws Exception { |
67 File repoRoot = repo.getWorkingDir(); | 66 File repoRoot = repo.getWorkingDir(); |
68 Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(repoRoot), repo.getToRepoPathHelper())); | 67 Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(repoRoot), repo.getToRepoPathHelper())); |
69 FileWalker fw = new FileWalker(HgInternals.getContext(repo), repoRoot, pathSrc); | 68 FileWalker fw = new FileWalker(repo.getSessionContext(), repoRoot, pathSrc); |
70 | 69 |
71 if (Internals.runningOnWindows()) { | 70 if (Internals.runningOnWindows()) { |
72 System.out.println("Executing tests on Windows, no actual file flags in working area are checked"); | 71 System.out.println("Executing tests on Windows, no actual file flags in working area are checked"); |
73 assertFalse(fw.supportsExecFlag()); | 72 assertFalse(fw.supportsExecFlag()); |
74 assertFalse(fw.supportsLinkFlag()); | 73 assertFalse(fw.supportsLinkFlag()); |