comparison test/org/tmatesoft/hg/test/TestDirstate.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 df5009d67be2
children e4a71afd3c71
comparison
equal deleted inserted replaced
535:d9c07e1432c4 536:2813a26b8999
53 } 53 }
54 54
55 @Test 55 @Test
56 public void testParentsEmptyRepo() throws Exception { 56 public void testParentsEmptyRepo() throws Exception {
57 // check contract return values for empty/nonexistent dirstate 57 // check contract return values for empty/nonexistent dirstate
58 repo = new HgLookup().detect(TestIncoming.initEmptyTempRepo("testParentsEmptyRepo")); 58 repo = new HgLookup().detect(RepoUtils.initEmptyTempRepo("testParentsEmptyRepo"));
59 final Pair<Nodeid, Nodeid> wcParents = repo.getWorkingCopyParents(); 59 final Pair<Nodeid, Nodeid> wcParents = repo.getWorkingCopyParents();
60 Assert.assertTrue(wcParents.first().isNull()); 60 Assert.assertTrue(wcParents.first().isNull());
61 Assert.assertTrue(wcParents.second().isNull()); 61 Assert.assertTrue(wcParents.second().isNull());
62 } 62 }
63 63