diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-01-20 15:04:53 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-01-20 15:04:53 +0900 |
commit | 283830a6437ae05f06f65da2f96321beb6196318 (patch) | |
tree | cb46262e947450d696651a0b321f188deabca622 /org.eclipse.jgit.http.test/tst/org/eclipse/jgit | |
parent | fb7b94313a21ffb1458cfb5fe1c6aeabc36fe387 (diff) | |
download | jgit-283830a6437ae05f06f65da2f96321beb6196318.tar.gz jgit-283830a6437ae05f06f65da2f96321beb6196318.zip |
SmartClientSmartServerTest: Stop using deprecated Repository#hasObject
Change-Id: I75d1105934aeaac89476603e15cf642a65a3acbe
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java index ecab61eeb5..83083f8a4e 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java +++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java @@ -487,20 +487,20 @@ public class SmartClientSmartServerTest extends HttpTestCase { @Test public void testFetchBySHA1() throws Exception { Repository dst = createBareRepository(); - assertFalse(dst.hasObject(A_txt)); + assertFalse(dst.getObjectDatabase().has(A_txt)); try (Transport t = Transport.open(dst, remoteURI)) { t.fetch(NullProgressMonitor.INSTANCE, Collections.singletonList(new RefSpec(B.name()))); } - assertTrue(dst.hasObject(A_txt)); + assertTrue(dst.getObjectDatabase().has(A_txt)); } @Test public void testFetchBySHA1Unreachable() throws Exception { Repository dst = createBareRepository(); - assertFalse(dst.hasObject(A_txt)); + assertFalse(dst.getObjectDatabase().has(A_txt)); try (Transport t = Transport.open(dst, remoteURI)) { thrown.expect(TransportException.class); @@ -515,7 +515,7 @@ public class SmartClientSmartServerTest extends HttpTestCase { public void testFetchBySHA1UnreachableByAdvertiseRefsHook() throws Exception { Repository dst = createBareRepository(); - assertFalse(dst.hasObject(A_txt)); + assertFalse(dst.getObjectDatabase().has(A_txt)); advertiseRefsHook = new AbstractAdvertiseRefsHook() { @Override |