Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestByteChannel.java @ 536:2813a26b8999
Tests: refactor various utility methods to a single location
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 05 Feb 2013 16:36:58 +0100 |
parents | 12f668401613 |
children |
comparison
equal
deleted
inserted
replaced
535:d9c07e1432c4 | 536:2813a26b8999 |
---|---|
94 assertArrayEquals("a \r\n".getBytes(), ch.toArray()); | 94 assertArrayEquals("a \r\n".getBytes(), ch.toArray()); |
95 } | 95 } |
96 | 96 |
97 @Test | 97 @Test |
98 public void testWorkingCopyFileAccess() throws Exception { | 98 public void testWorkingCopyFileAccess() throws Exception { |
99 final File repoDir = TestIncoming.initEmptyTempRepo("testWorkingCopyFileAccess"); | 99 final File repoDir = RepoUtils.initEmptyTempRepo("testWorkingCopyFileAccess"); |
100 final Map<String, ?> props = Collections.singletonMap(Internals.CFG_PROPERTY_REVLOG_STREAM_CACHE, false); | 100 final Map<String, ?> props = Collections.singletonMap(Internals.CFG_PROPERTY_REVLOG_STREAM_CACHE, false); |
101 repo = new HgLookup(new BasicSessionContext(props, null)).detect(repoDir); | 101 repo = new HgLookup(new BasicSessionContext(props, null)).detect(repoDir); |
102 File f1 = new File(repoDir, "file1"); | 102 File f1 = new File(repoDir, "file1"); |
103 final String c1 = "First", c2 = "Second", c3 = "Third"; | 103 final String c1 = "First", c2 = "Second", c3 = "Third"; |
104 ByteArrayChannel ch; | 104 ByteArrayChannel ch; |