Decouple jgit's Repository class from the Bridge

This commit is contained in:
Winston Li
2016-08-20 17:18:22 +01:00
committed by Michael Mazour
parent c3625163bf
commit 5b810b64ba
25 changed files with 271 additions and 175 deletions

View File

@@ -11,8 +11,8 @@ import org.mockserver.client.server.MockServerClient;
import org.mockserver.junit.MockServerRule;
import uk.ac.ic.wlgitbridge.data.filestore.RawFile;
import uk.ac.ic.wlgitbridge.data.model.db.PersistentStore;
import uk.ac.ic.wlgitbridge.git.exception.GitUserException;
import uk.ac.ic.wlgitbridge.git.util.RepositoryObjectTreeWalker;
import uk.ac.ic.wlgitbridge.snapshot.push.exception.SnapshotPostException;
import java.io.IOException;
import java.util.HashMap;
@@ -32,7 +32,7 @@ public class ResourceFetcherTest {
private MockServerClient mockServerClient;
@Test
public void fetchesFilesThatAreMissingFromUrlStoreCache() throws IOException, SnapshotPostException {
public void fetchesFilesThatAreMissingFromUrlStoreCache() throws IOException, GitUserException {
final String testProjectName = "123abc";
final String testUrl = "http://localhost:" + mockServerRule.getPort() + "/123abc";
final String oldTestPath = "testPath";