Просмотр исходного кода

Added integration test directory and wrote FileUtil and tests.

Winston Li 11 лет назад
Родитель
Сommit
3a532a76df
100 измененных файлов с 411 добавлено и 1454 удалено
  1. 21 0
      services/git-bridge/src/it/java/TTest.java
  2. 15 0
      services/git-bridge/src/it/java/uk/ac/ic/wlgitbridge/IntegrationTest.java
  3. 65 0
      services/git-bridge/src/it/resources/state.json
  4. 14 0
      services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java
  5. 152 0
      services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIStateBuilder.java
  6. 63 0
      services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/util/FileUtil.java
  7. 61 0
      services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/test/util/FileUtilTest.java
  8. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt
  9. 0 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/neq1.txt
  10. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt
  11. 0 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/neq2.txt
  12. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt
  13. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt
  14. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt
  15. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt
  16. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt
  17. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt
  18. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt
  19. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt
  20. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt
  21. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt
  22. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt
  23. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt
  24. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt
  25. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt
  26. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt
  27. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt
  28. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt
  29. 1 0
      services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt
  30. 0 13
      services/git-bridge/test/system/SystemTest.java
  31. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java
  32. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java
  33. 0 32
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java
  34. 0 17
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java
  35. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java
  36. 0 30
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java
  37. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java
  38. 0 13
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java
  39. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java
  40. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java
  41. 0 17
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java
  42. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java
  43. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java
  44. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java
  45. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java
  46. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java
  47. 0 22
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java
  48. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java
  49. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java
  50. 0 13
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java
  51. 0 11
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java
  52. 0 26
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java
  53. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java
  54. 0 33
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java
  55. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java
  56. 0 38
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java
  57. 0 41
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java
  58. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java
  59. 0 14
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java
  60. 0 17
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java
  61. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java
  62. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java
  63. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java
  64. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java
  65. 0 21
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java
  66. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java
  67. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java
  68. 0 33
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java
  69. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java
  70. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java
  71. 0 15
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java
  72. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java
  73. 0 28
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java
  74. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java
  75. 0 21
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java
  76. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java
  77. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java
  78. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java
  79. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java
  80. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java
  81. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java
  82. 0 13
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java
  83. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java
  84. 0 21
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java
  85. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java
  86. 0 28
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java
  87. 0 16
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java
  88. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java
  89. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java
  90. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java
  91. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java
  92. 0 12
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java
  93. 0 33
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java
  94. 0 23
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java
  95. 0 48
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java
  96. 0 38
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java
  97. 0 18
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java
  98. 0 38
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java
  99. 0 38
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java
  100. 0 48
      services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java

+ 21 - 0
services/git-bridge/src/it/java/TTest.java

@@ -0,0 +1,21 @@
+import org.junit.Test;
+import uk.ac.ic.wlgitbridge.test.server.MockSnapshotServer;
+import uk.ac.ic.wlgitbridge.test.state.SnapshotAPIState;
+import uk.ac.ic.wlgitbridge.test.state.SnapshotAPIStateBuilder;
+
+/**
+ * Created by Winston on 11/01/15.
+ */
+public class TTest {
+
+    @Test
+    public void testStreamToString() {
+        SnapshotAPIStateBuilder stateBuilder = new SnapshotAPIStateBuilder(getClass().getResourceAsStream("/state.json"));
+        SnapshotAPIState state = stateBuilder.build();
+        MockSnapshotServer server = new MockSnapshotServer();
+        server.setState(state);
+        server.start();
+        while (true);
+    }
+
+}

+ 15 - 0
services/git-bridge/src/it/java/uk/ac/ic/wlgitbridge/IntegrationTest.java

@@ -0,0 +1,15 @@
+package uk.ac.ic.wlgitbridge;
+
+import org.junit.Test;
+
+/**
+ * Created by Winston on 11/01/15.
+ */
+public class IntegrationTest {
+
+    @Test
+    public void canCloneARepository() {
+
+    }
+
+}

Разница между файлами не показана из-за своего большого размера
+ 65 - 0
services/git-bridge/src/it/resources/state.json


+ 14 - 0
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java

@@ -24,7 +24,21 @@ public class SnapshotAPIState {
     private Map<String, SnapshotPushResult> push;
     private Map<String, SnapshotPushResult> push;
     private Map<String, SnapshotPostbackRequest> postback;
     private Map<String, SnapshotPostbackRequest> postback;
 
 
+    public SnapshotAPIState(Map<String, SnapshotGetDocResult> getDoc,
+                            Map<String, SnapshotGetSavedVersResult> getSavedVers,
+                            Map<String, Map<Integer, SnapshotGetForVersionResult>> getForVers,
+                            Map<String, SnapshotPushResult> push,
+                            Map<String, SnapshotPostbackRequest> postback) {
+
+        this.getDoc = getDoc;
+        this.getSavedVers = getSavedVers;
+        this.getForVers = getForVers;
+        this.push = push;
+        this.postback = postback;
+    }
+
     public SnapshotAPIState() {
     public SnapshotAPIState() {
+
         getDoc = new HashMap<String, SnapshotGetDocResult>();
         getDoc = new HashMap<String, SnapshotGetDocResult>();
         getDoc.put("1826rqgsdb", new SnapshotGetDocResult(243, "2014-11-30T18:40:58Z", "jdleesmiller+1@gmail.com", "John+1"));
         getDoc.put("1826rqgsdb", new SnapshotGetDocResult(243, "2014-11-30T18:40:58Z", "jdleesmiller+1@gmail.com", "John+1"));
 
 

+ 152 - 0
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIStateBuilder.java

@@ -0,0 +1,152 @@
+package uk.ac.ic.wlgitbridge.test.state;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import uk.ac.ic.wlgitbridge.test.response.push.data.SnapshotPushResult;
+import uk.ac.ic.wlgitbridge.test.response.push.data.SnapshotPushResultOutOfDate;
+import uk.ac.ic.wlgitbridge.test.response.push.data.SnapshotPushResultSuccess;
+import uk.ac.ic.wlgitbridge.test.response.push.postback.*;
+import uk.ac.ic.wlgitbridge.test.response.push.postback.invalidfile.InvalidFileError;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getdoc.SnapshotGetDocResult;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion.SnapshotAttachment;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion.SnapshotData;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion.SnapshotFile;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion.SnapshotGetForVersionResult;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers.SnapshotGetSavedVersResult;
+import uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers.SnapshotInfo;
+
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Created by Winston on 11/01/15.
+ */
+public class SnapshotAPIStateBuilder {
+
+    private final JsonArray projects;
+
+    private Map<String, SnapshotGetDocResult> getDoc = new HashMap<String, SnapshotGetDocResult>();
+    private Map<String, SnapshotGetSavedVersResult> getSavedVers = new HashMap<String, SnapshotGetSavedVersResult>();
+    private Map<String, Map<Integer, SnapshotGetForVersionResult>> getForVers = new HashMap<String, Map<Integer, SnapshotGetForVersionResult>>();
+    private Map<String, SnapshotPushResult> push = new HashMap<String, SnapshotPushResult>();
+    private Map<String, SnapshotPostbackRequest> postback = new HashMap<String, SnapshotPostbackRequest>();
+
+    public SnapshotAPIStateBuilder(InputStream stream) {
+        projects = new Gson().fromJson(new InputStreamReader(stream), JsonArray.class);
+    }
+
+    public SnapshotAPIState build() {
+        for (JsonElement project : projects) {
+            addProject(project.getAsJsonObject());
+        }
+        return new SnapshotAPIState(getDoc, getSavedVers, getForVers, push, postback);
+    }
+
+    private void addProject(JsonObject project) {
+        String projectName = project.get("project").getAsString();
+        addGetDocForProject(projectName, project.get("getDoc").getAsJsonObject());
+        addGetSavedVersForProject(projectName, project.get("getSavedVers").getAsJsonArray());
+        addGetForVersForProject(projectName, project.get("getForVers").getAsJsonArray());
+        addPushForProject(projectName, project.get("push").getAsString());
+        addPostbackForProject(projectName, project.get("postback").getAsJsonObject());
+    }
+
+    private void addGetDocForProject(String projectName, JsonObject jsonGetDoc) {
+        getDoc.put(projectName,
+                   new SnapshotGetDocResult(jsonGetDoc.get("versionID").getAsInt(),
+                                            jsonGetDoc.get("createdAt").getAsString(),
+                                            jsonGetDoc.get("email").getAsString(),
+                                            jsonGetDoc.get("name").getAsString()));
+    }
+
+    private void addGetSavedVersForProject(String projectName, JsonArray jsonGetSavedVers) {
+        List<SnapshotInfo> savedVers = new LinkedList<SnapshotInfo>();
+        for (JsonElement ver : jsonGetSavedVers) {
+            savedVers.add(getSnapshotInfo(ver.getAsJsonObject()));
+        }
+        getSavedVers.put(projectName, new SnapshotGetSavedVersResult(savedVers));
+    }
+
+    private SnapshotInfo getSnapshotInfo(JsonObject jsonSnapshotInfo) {
+        return new SnapshotInfo(jsonSnapshotInfo.get("versionID").getAsInt(),
+                                jsonSnapshotInfo.get("comment").getAsString(),
+                                jsonSnapshotInfo.get("email").getAsString(),
+                                jsonSnapshotInfo.get("name").getAsString(),
+                                jsonSnapshotInfo.get("createdAt").getAsString());
+    }
+
+    private void addGetForVersForProject(String projectName, JsonArray jsonGetForVers) {
+        Map<Integer, SnapshotGetForVersionResult> forVers = new HashMap<Integer, SnapshotGetForVersionResult>();
+        for (JsonElement forVer : jsonGetForVers) {
+            JsonObject forVerObj = forVer.getAsJsonObject();
+            forVers.put(forVerObj.get("versionID").getAsInt(),
+                        new SnapshotGetForVersionResult(new SnapshotData(getSrcs(forVerObj.get("srcs").getAsJsonArray()),
+                                                                         getAtts(forVerObj.get("atts").getAsJsonArray()))));
+        }
+        getForVers.put(projectName, forVers);
+    }
+
+    private List<SnapshotFile> getSrcs(JsonArray jsonSrcs) {
+        List<SnapshotFile> srcs = new LinkedList<SnapshotFile>();
+        for (JsonElement src : jsonSrcs) {
+            srcs.add(getSrc(src.getAsJsonObject()));
+        }
+        return srcs;
+    }
+
+    private SnapshotFile getSrc(JsonObject jsonSrc) {
+        return new SnapshotFile(jsonSrc.get("content").getAsString(),
+                                jsonSrc.get("path").getAsString());
+    }
+
+    private List<SnapshotAttachment> getAtts(JsonArray jsonAtts) {
+        List<SnapshotAttachment> atts = new LinkedList<SnapshotAttachment>();
+        for (JsonElement att : jsonAtts) {
+            atts.add(getAtt(att.getAsJsonObject()));
+        }
+        return atts;
+    }
+
+    private SnapshotAttachment getAtt(JsonObject jsonAtt) {
+        return new SnapshotAttachment(jsonAtt.get("url").getAsString(),
+                                      jsonAtt.get("path").getAsString());
+    }
+
+    private void addPushForProject(String projectName, String jsonPush) {
+        SnapshotPushResult p;
+        if (jsonPush.equals("success")) {
+            p = new SnapshotPushResultSuccess();
+        } else if (jsonPush.equals("outOfDate")) {
+            p = new SnapshotPushResultOutOfDate();
+        } else {
+            throw new IllegalArgumentException("invalid push");
+        }
+        push.put(projectName, p);
+    }
+
+    private void addPostbackForProject(String projectName, JsonObject jsonPostback) {
+        SnapshotPostbackRequest p;
+        String type = jsonPostback.get("type").getAsString();
+        if (type.equals("success")) {
+            p = new SnapshotPostbackRequestSuccess(jsonPostback.get("versionID").getAsInt());
+        } else if (type.equals("outOfDate")) {
+            p = new SnapshotPostbackRequestOutOfDate();
+        } else if (type.equals("invalidFiles")) {
+            p = new SnapshotPostbackRequestInvalidFiles(new LinkedList<InvalidFileError>());
+        } else if (type.equals("invalidProject")) {
+            p = new SnapshotPostbackRequestInvalidProject(new LinkedList<String>());
+        } else if (type.equals("error")) {
+            p = new SnapshotPostbackRequestError();
+        } else {
+            throw new IllegalArgumentException("invalid postback type");
+        }
+        postback.put(projectName, p);
+    }
+
+}

+ 63 - 0
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/util/FileUtil.java

@@ -0,0 +1,63 @@
+package uk.ac.ic.wlgitbridge.test.util;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Created by Winston on 11/01/15.
+ */
+public class FileUtil {
+
+    public static boolean gitDirectoriesAreEqual(Path dir1, Path dir2) {
+        Set<String> dir1Contents = getAllFilesRecursivelyInDirectoryApartFrom(dir1, dir1.resolve(".git"));
+        Set<String> dir2Contents = getAllFilesRecursivelyInDirectoryApartFrom(dir2, dir2.resolve(".git"));
+        return dir1Contents.equals(dir2Contents) && directoryContentsEqual(dir1Contents, dir1, dir2);
+    }
+
+    static boolean directoryContentsEqual(Set<String> dirContents, Path dir1, Path dir2) {
+        for (String file : dirContents) {
+            Path path1 = dir1.resolve(file);
+            Path path2 = dir2.resolve(file);
+            if (!path1.toFile().isDirectory() && !path2.toFile().isDirectory() && !fileContentsEqual(path1, path2)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private static boolean fileContentsEqual(Path first, Path second) {
+        try {
+            byte[] firstContents = Files.readAllBytes(first);
+            byte[] secondContents = Files.readAllBytes(second);
+            return Arrays.equals(firstContents, secondContents);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    static Set<String> getAllFilesRecursivelyInDirectoryApartFrom(Path dir, Path excluded) {
+        if (!dir.toFile().isDirectory()) {
+            throw new IllegalArgumentException("need a directory");
+        }
+        return getAllFilesRecursively(dir, dir, excluded);
+    }
+
+    static Set<String> getAllFilesRecursively(Path baseDir, Path dir, Path excluded) {
+        Set<String> files = new HashSet<String>();
+        for (File file : dir.toFile().listFiles()) {
+            if (!file.equals(excluded.toFile())) {
+                files.add(baseDir.relativize(file.toPath()).toString());
+                if (file.isDirectory()) {
+                    files.addAll(getAllFilesRecursively(baseDir, file.toPath(), excluded));
+                }
+            }
+        }
+        return files;
+    }
+
+}

+ 61 - 0
services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/test/util/FileUtilTest.java

@@ -0,0 +1,61 @@
+package uk.ac.ic.wlgitbridge.test.util;
+
+import junit.framework.Assert;
+import org.junit.Test;
+
+import java.net.URISyntaxException;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+
+public class FileUtilTest {
+
+    @Test
+    public void returnsTrueWhenFilesAreEqualInBothDirectories() throws URISyntaxException {
+        Path eq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1").toURI());
+        Path eq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2").toURI());
+        Assert.assertTrue(FileUtil.gitDirectoriesAreEqual(eq1, eq2));
+    }
+
+    @Test
+    public void returnsTrueWhenRecursiveFilesAreEqualInBothDirectores() throws URISyntaxException {
+        Path eq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1").toURI());
+        Path eq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2").toURI());
+        Assert.assertTrue(FileUtil.gitDirectoriesAreEqual(eq1, eq2));
+    }
+
+    @Test
+    public void returnsFalseWhenFilesAreNotEqualInBothDirectories() throws URISyntaxException {
+        Path neq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1").toURI());
+        Path neq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2").toURI());
+        Assert.assertFalse(FileUtil.gitDirectoriesAreEqual(neq1, neq2));
+    }
+
+    @Test
+    public void returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories() throws URISyntaxException {
+        Path neq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1").toURI());
+        Path neq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2").toURI());
+        Assert.assertFalse(FileUtil.gitDirectoriesAreEqual(neq1, neq2));
+    }
+
+    @Test
+    public void returnsTrueEvenIfGitDirectoriesAreNotEqual() throws URISyntaxException {
+        Path neq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1").toURI());
+        Path neq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2").toURI());
+        Assert.assertTrue(FileUtil.gitDirectoriesAreEqual(neq1, neq2));
+    }
+
+    @Test
+    public void returnsFalseIfFileNamesAreNotEqual() throws URISyntaxException {
+        Path neq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1").toURI());
+        Path neq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2").toURI());
+        Assert.assertFalse(FileUtil.gitDirectoriesAreEqual(neq1, neq2));
+    }
+
+    @Test
+    public void returnsFalseIfInnerDirectoryNamesAreNotEqual() throws URISyntaxException {
+        Path neq1 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1").toURI());
+        Path neq2 = Paths.get(getClass().getResource("/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2").toURI());
+        Assert.assertFalse(FileUtil.gitDirectoriesAreEqual(neq1, neq2));
+    }
+
+}

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt

@@ -0,0 +1 @@
+12345

+ 0 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/neq1.txt


+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt

@@ -0,0 +1 @@
+12345

+ 0 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/neq2.txt


+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt

@@ -0,0 +1 @@
+1234

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt

@@ -0,0 +1 @@
+1234

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt

@@ -0,0 +1 @@
+123

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt

@@ -0,0 +1 @@
+123

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt

@@ -0,0 +1 @@
+123

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt

@@ -0,0 +1 @@
+123

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt

@@ -0,0 +1 @@
+12345

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt

@@ -0,0 +1 @@
+123

+ 1 - 0
services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt

@@ -0,0 +1 @@
+12345

+ 0 - 13
services/git-bridge/test/system/SystemTest.java

@@ -1,13 +0,0 @@
-import org.junit.Test;
-
-/**
- * Created by Winston on 05/12/14.
- */
-public class SystemTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class MainTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-public class AttsResourceHandlerTest {
-
-    @Test
-    public void testHandle() throws Exception {
-
-    }
-
-}

+ 0 - 32
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java

@@ -1,32 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-import java.io.IOException;
-
-public class ConfigTest {
-
-    @Test
-    public void isReadingConfigCorrectly() throws IOException {
-//        Config config = new Config("/Users/Roxy/Code/java/writelatex-git-bridge/bin/config.json");
-//        Assert.assertEquals(80, config.getPort());
-//        Assert.assertEquals("/var/wlgb/git", config.getRootGitDirectory());
-//        Assert.assertEquals("", config.getAPIKey());
-    }
-
-    @Test
-    public void testGetPort() throws Exception {
-
-    }
-
-    @Test
-    public void testGetRootGitDirectory() throws Exception {
-
-    }
-
-    @Test
-    public void testGetAPIKey() throws Exception {
-
-    }
-
-}

+ 0 - 17
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java

@@ -1,17 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-public class SnapshotPushPostbackContentsTest {
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testProcessPostback() throws Exception {
-
-    }
-
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-public class SnapshotPushPostbackHandlerTest {
-
-    @Test
-    public void testHandle() throws Exception {
-
-    }
-    
-}

+ 0 - 30
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java

@@ -1,30 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class WLGitBridgeApplicationTest {
-
-    @Test
-    public void diesIfLessThanTwoArguments() {
-
-    }
-
-    @Test
-    public void diesIfFirstArgumentIsInvalidNumber() {
-
-    }
-
-    @Test
-    public void setsPortToFirstArgument() {
-
-    }
-
-    @Test
-    public void setsRootGitDirectoryPathToSecondArgument() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.application;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class WLGitBridgeServerTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 13
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java

@@ -1,13 +0,0 @@
-package uk.ac.ic.wlgitbridge.application.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class InvalidConfigFileExceptionTest {
-
-    @Test
-    public void testGetMissingMember() throws Exception {
-
-    }
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.application.exception;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 03/11/14.
- */
-public class InvalidProgramArgumentsExceptionTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.application.jetty;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 03/11/14.
- */
-public class NullLoggerTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-
-}

+ 0 - 17
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java

@@ -1,17 +0,0 @@
-package uk.ac.ic.wlgitbridge.bridge;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 05/11/14.
- */
-public class WLBridgedProjectTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-    /* repo doesn't exist in DB: don't create */
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.exception;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 03/11/14.
- */
-public class InvalidRootDirectoryPathExceptionTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.handler;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class WLReceivePackFactoryTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.handler;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class WLRepositoryResolverTest {
-
-    @Test
-    public void joinsFilePathsTogether() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.handler;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 02/11/14.
- */
-public class WLUploadPackTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.handler.hook;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 03/11/14.
- */
-public class WriteLatexPutHookTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 22
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java

@@ -1,22 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.handler.hook.exception;
-
-import org.junit.Test;
-
-public class ForcedPushExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.servlet;
-
-import org.junit.Test;
-
-public class WLGitServletConfigTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.servlet;
-
-import org.junit.Test;
-
-public class WLGitServletTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 13
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java

@@ -1,13 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.util;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class FileDirectoryContentsTest {
-
-    @Test
-    public void testGetFileContentsTable() throws Exception {
-
-    }
-}

+ 0 - 11
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java

@@ -1,11 +0,0 @@
-package uk.ac.ic.wlgitbridge.git.util;
-
-import org.junit.Test;
-
-public class RepositoryObjectTreeWalkerTest {
-
-    @Test
-    public void testGetDirectoryContents() throws Exception {
-
-    }
-}

+ 0 - 26
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java

@@ -1,26 +0,0 @@
-package uk.ac.ic.wlgitbridge.util;
-
-import org.junit.Test;
-
-public class UtilTest {
-
-    @Test
-    public void testEntries() throws Exception {
-
-    }
-
-    @Test
-    public void testBooleanToInt() throws Exception {
-
-    }
-
-    @Test
-    public void testIntToBoolean() throws Exception {
-
-    }
-
-    @Test
-    public void testRemoveAllSuffixes() throws Exception {
-
-    }
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class ProjectLockTest {
-
-    @Test
-    public void testLockForProject() throws Exception {
-
-    }
-
-    @Test
-    public void testUnlockForProject() throws Exception {
-
-    }
-}

+ 0 - 33
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java

@@ -1,33 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotFetcherTest {
-
-    @Test
-    public void testFetchNewSnapshots() throws Exception {
-
-    }
-
-    @Test
-    public void testGetLatestSnapshot() throws Exception {
-
-    }
-
-    @Test
-    public void testPutLatestVersion() throws Exception {
-
-    }
-
-    @Test
-    public void testInitFromPersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testGetVersions() throws Exception {
-
-    }
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 05/11/14.
- */
-public class SnapshotRepositoryBuilderTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 38
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java

@@ -1,38 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class WLDirectoryNodeSnapshotTest {
-
-    @Test
-    public void testGetJsonRepresentation() throws Exception {
-
-    }
-
-    @Test
-    public void testGetPreviousVersionID() throws Exception {
-
-    }
-
-    @Test
-    public void testGetProjectURL() throws Exception {
-
-    }
-
-    @Test
-    public void testApproveWithVersionID() throws Exception {
-
-    }
-
-    @Test
-    public void testGetProjectName() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDirectoryNode() throws Exception {
-
-    }
-}

+ 0 - 41
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java

@@ -1,41 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex;
-
-import org.junit.Test;
-
-public class WriteLatexAPITest {
-
-    @Test
-    public void testLockForProject() throws Exception {
-
-    }
-
-    @Test
-    public void testUnlockForProject() throws Exception {
-
-    }
-
-    @Test
-    public void testRepositoryExists() throws Exception {
-
-    }
-
-    @Test
-    public void testGetWritableRepositories() throws Exception {
-
-    }
-
-    @Test
-    public void testPutDirectoryContentsToProjectWithName() throws Exception {
-
-    }
-
-    @Test
-    public void testPostbackReceivedSuccessfully() throws Exception {
-
-    }
-
-    @Test
-    public void testPostbackReceivedWithException() throws Exception {
-
-    }
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
-
-import org.junit.Test;
-
-public class HTTPMethodTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 14
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java

@@ -1,14 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 06/11/14.
- */
-public class RequestTest {
-
-    @Test
-    public void nothingToTest() {
-    }
-
-}

+ 0 - 17
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java

@@ -1,17 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
-
-import org.junit.Test;
-
-public class ResultTest {
-
-    @Test
-    public void testGetRequest() throws Exception {
-
-    }
-
-    @Test
-    public void testToString() throws Exception {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 06/11/14.
- */
-public class SnapshotAPIRequestTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.exception;
-
-import org.junit.Test;
-
-public class FailedConnectionExceptionTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getdoc;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 06/11/14.
- */
-public class SnapshotGetDocRequestTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getdoc;
-
-import org.junit.Test;
-
-public class SnapshotGetDocResultTest {
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetVersionID() throws Exception {
-
-    }
-}

+ 0 - 21
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java

@@ -1,21 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getdoc.exception;
-
-import org.junit.Test;
-
-public class InvalidProjectExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotAttachmentTest {
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testGetContentsFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUrl() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotDataTest {
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetSrcs() throws Exception {
-
-    }
-
-    @Test
-    public void testGetAtts() throws Exception {
-
-    }
-}

+ 0 - 33
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java

@@ -1,33 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotFileTest {
-
-    @Test
-    public void testGetPath() throws Exception {
-
-    }
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetContentsFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetPathFromJSON() throws Exception {
-
-    }
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 06/11/14.
- */
-public class SnapshotGetForVersionRequestTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion;
-
-import org.junit.Test;
-
-public class SnapshotGetForVersionResultTest {
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetSnapshotData() throws Exception {
-
-    }
-}

+ 0 - 15
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java

@@ -1,15 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers;
-
-import org.junit.Test;
-
-/**
- * Created by Winston on 06/11/14.
- */
-public class SnapshotGetSavedVersRequestTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotGetSavedVersResultTest {
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-
-    @Test
-    public void testGetSavedVers() throws Exception {
-
-    }
-}

+ 0 - 28
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java

@@ -1,28 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotInfoTest {
-
-    @Test
-    public void testGetVersionId() throws Exception {
-
-    }
-
-    @Test
-    public void testGetComment() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUser() throws Exception {
-
-    }
-
-    @Test
-    public void testGetCreatedAt() throws Exception {
-
-    }
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers;
-
-import org.junit.Test;
-
-public class WLUserTest {
-
-    @Test
-    public void testGetName() throws Exception {
-
-    }
-
-    @Test
-    public void testGetEmail() throws Exception {
-
-    }
-}

+ 0 - 21
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java

@@ -1,21 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push;
-
-import org.junit.Test;
-
-public class PostbackContentsTest {
-
-    @Test
-    public void testWaitForPostback() throws Exception {
-
-    }
-
-    @Test
-    public void testReceivedVersionID() throws Exception {
-
-    }
-
-    @Test
-    public void testReceivedException() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class PostbackManagerTest {
-
-    @Test
-    public void testGetVersionID() throws Exception {
-
-    }
-
-    @Test
-    public void testPostVersionIDForProject() throws Exception {
-
-    }
-
-    @Test
-    public void testPostExceptionForProject() throws Exception {
-
-    }
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push;
-
-import org.junit.Test;
-
-public class SnapshotPushRequestResultTest {
-
-    @Test
-    public void testWasSuccessful() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotPushRequestTest {
-
-    @Test
-    public void testHttpMethod() throws Exception {
-
-    }
-
-    @Test
-    public void testGetPostBody() throws Exception {
-
-    }
-
-    @Test
-    public void testParseResponse() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class InvalidFilesExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class InvalidProjectExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class OutOfDateExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 13
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java

@@ -1,13 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotPostExceptionBuilderTest {
-
-    @Test
-    public void testBuild() throws Exception {
-
-    }
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotPostExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-}

+ 0 - 21
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java

@@ -1,21 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-public class UnexpectedErrorExceptionTest {
-
-    @Test
-    public void testGetMessage() throws Exception {
-
-    }
-
-    @Test
-    public void testGetDescriptionLines() throws Exception {
-
-    }
-
-    @Test
-    public void testFromJSON() throws Exception {
-
-    }
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception;
-
-import org.junit.Test;
-
-public class UnexpectedPostbackExceptionTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 28
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java

@@ -1,28 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class GitDirectoryContentsTest {
-
-    @Test
-    public void testWrite() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUserName() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUserEmail() throws Exception {
-
-    }
-
-    @Test
-    public void testGetCommitMessage() throws Exception {
-
-    }
-}

+ 0 - 16
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java

@@ -1,16 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore;
-
-import org.junit.Test;
-
-public class RepositoryFileTest {
-
-    @Test
-    public void testGetPath() throws Exception {
-
-    }
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
-
-import org.junit.Test;
-
-public class AttachmentBlobTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class BlobTest {
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testEquals() throws Exception {
-
-    }
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class ByteBlobTest {
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class ExternalBlobTest {
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-}

+ 0 - 12
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java

@@ -1,12 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
-
-import org.junit.Test;
-
-public class RawFileBlobTest {
-
-    @Test
-    public void nothingToTest() {
-
-    }
-
-}

+ 0 - 33
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java

@@ -1,33 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.node;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class AttachmentNodeTest {
-
-    @Test
-    public void testIndexWith() throws Exception {
-
-    }
-
-    @Test
-    public void testGetBlob() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testGetURL() throws Exception {
-
-    }
-
-    @Test
-    public void testGetProjectName() throws Exception {
-
-    }
-}

+ 0 - 23
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java

@@ -1,23 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.node;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class BlobNodeTest {
-
-    @Test
-    public void testIndexWith() throws Exception {
-
-    }
-
-    @Test
-    public void testGetBlob() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-}

+ 0 - 48
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java

@@ -1,48 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.node;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class FileNodeTest {
-
-    @Test
-    public void testGetContents() throws Exception {
-
-    }
-
-    @Test
-    public void testWriteToDisk() throws Exception {
-
-    }
-
-    @Test
-    public void testGetFilePath() throws Exception {
-
-    }
-
-    @Test
-    public void testIsChanged() throws Exception {
-
-    }
-
-    @Test
-    public void testIndexWith() throws Exception {
-
-    }
-
-    @Test
-    public void testGetBlob() throws Exception {
-
-    }
-
-    @Test
-    public void testEquals() throws Exception {
-
-    }
-
-    @Test
-    public void testToString() throws Exception {
-
-    }
-}

+ 0 - 38
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java

@@ -1,38 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.node;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class WLDirectoryNodeTest {
-
-    @Test
-    public void testInitFromPersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testGetFileNodes() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdateFromSnapshot() throws Exception {
-
-    }
-
-    @Test
-    public void testCreateFromRawDirectoryContents() throws Exception {
-
-    }
-
-    @Test
-    public void testToString() throws Exception {
-
-    }
-}

+ 0 - 18
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java

@@ -1,18 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.store;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class BlobHashTest {
-
-    @Test
-    public void testEquals() throws Exception {
-
-    }
-
-    @Test
-    public void testHashCode() throws Exception {
-
-    }
-}

+ 0 - 38
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java

@@ -1,38 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.store;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class FileIndexStoreTest {
-
-    @Test
-    public void testIndex() throws Exception {
-
-    }
-
-    @Test
-    public void testIndex1() throws Exception {
-
-    }
-
-    @Test
-    public void testInitFromPersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testHasAttachmentWithURL() throws Exception {
-
-    }
-
-    @Test
-    public void testGetAttachment() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdatePersistentStore() throws Exception {
-
-    }
-}

+ 0 - 38
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java

@@ -1,38 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.filestore.store;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class WLFileStoreTest {
-
-    @Test
-    public void testInitFromPersistentStore() throws Exception {
-
-    }
-
-    @Test
-    public void testDeleteInDirectory() throws Exception {
-
-    }
-
-    @Test
-    public void testDeleteInDirectoryApartFrom() throws Exception {
-
-    }
-
-    @Test
-    public void testUpdateForProject() throws Exception {
-
-    }
-
-    @Test
-    public void testCreateNextDirectoryNodeInProjectFromContents() throws Exception {
-
-    }
-
-    @Test
-    public void testApproveCandidateSnapshot() throws Exception {
-
-    }
-}

+ 0 - 48
services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java

@@ -1,48 +0,0 @@
-package uk.ac.ic.wlgitbridge.writelatex.model;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class SnapshotTest {
-
-    @Test
-    public void testGetVersionID() throws Exception {
-
-    }
-
-    @Test
-    public void testGetComment() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUserName() throws Exception {
-
-    }
-
-    @Test
-    public void testGetUserEmail() throws Exception {
-
-    }
-
-    @Test
-    public void testGetSrcs() throws Exception {
-
-    }
-
-    @Test
-    public void testGetAtts() throws Exception {
-
-    }
-
-    @Test
-    public void testCompareTo() throws Exception {
-
-    }
-
-    @Test
-    public void testToString() throws Exception {
-
-    }
-}

Некоторые файлы не были показаны из-за большого количества измененных файлов