mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Made test classes and made BridgedProject class.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package uk.ac.ic.wlgitbridge.bridge;
|
||||
|
||||
import org.eclipse.jgit.lib.Repository;
|
||||
|
||||
/**
|
||||
* Created by Winston on 05/11/14.
|
||||
*/
|
||||
public class BridgedProject {
|
||||
|
||||
private final Repository repository;
|
||||
|
||||
public BridgedProject(Repository repository) {
|
||||
this.repository = repository;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,5 +16,5 @@ public class DummySnapshotAPI implements SnapshotAPI {
|
||||
public void putSnapshots(List<Snapshot> snapshots) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ public class SnapshotRepositoryBuilder implements RepositoryBuilder {
|
||||
}
|
||||
|
||||
private void buildRepositoryFromScratch(Repository repository) throws RepositoryNotFoundException {
|
||||
System.out.println("Need to build repo: " + repository.getDirectory().getAbsolutePath());
|
||||
if (!snapshotDBAPI.repositoryExists(repository)) {
|
||||
throw new RepositoryNotFoundException(repository.getDirectory());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user