@Test public void testFetchSpecificRemote() throws Exception { // fetch from the remote FetchOp fetch = fetchOp(); TransferSummary summary = fetch.addRemote("upstream").call(); assertEquals(1, summary.getRefDiffs().size()); assertTrue(summary.getRefDiffs().containsKey(upstream.getFetchURL())); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamMaster); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamTag); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamBranch1); TestSupport.verifySameContents(upstreamRepo, localRepo); }
@Test public void testFetchSpecificRemote() throws Exception { // fetch from the remote FetchOp fetch = fetchOp(); TransferSummary summary = fetch.addRemote("upstream").call(); assertEquals(1, summary.getRefDiffs().size()); assertTrue(summary.getRefDiffs().containsKey(upstream.getFetchURL())); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamMaster); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamTag); assertSummary(summary, upstream.getFetchURL(), absent(), upstreamBranch1); TestSupport.verifySameContents(upstreamRepo, localRepo); }
TestSupport.verifySameContents(remoteRepo, cloneRepo); verifyBranchConfig(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);
.call(); TestSupport.verifySameRefs(remoteRepo, cloneRepo); TestSupport.verifySameContents(remoteRepo, cloneRepo);
.call(); TestSupport.verifySameRefs(remoteRepo, cloneRepo); TestSupport.verifySameContents(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, localRepo);
TestSupport.verifySameContents(remoteRepo, localRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);
TestSupport.verifySameContents(remoteRepo, cloneRepo);