mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Added integration test directory and wrote FileUtil and tests.
This commit is contained in:
parent
f5e068a46e
commit
3a532a76df
121 changed files with 546 additions and 1956 deletions
21
services/git-bridge/src/it/java/TTest.java
Normal file
21
services/git-bridge/src/it/java/TTest.java
Normal file
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
198
services/git-bridge/src/it/resources/state.json
Normal file
198
services/git-bridge/src/it/resources/state.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,21 @@ public class SnapshotAPIState {
|
|||
private Map<String, SnapshotPushResult> push;
|
||||
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() {
|
||||
|
||||
getDoc = new HashMap<String, SnapshotGetDocResult>();
|
||||
getDoc.put("1826rqgsdb", new SnapshotGetDocResult(243, "2014-11-30T18:40:58Z", "jdleesmiller+1@gmail.com", "John+1"));
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
1234
|
|
@ -0,0 +1 @@
|
|||
1234
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
123
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
123
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
123
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
123
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -0,0 +1 @@
|
|||
123
|
|
@ -0,0 +1 @@
|
|||
12345
|
|
@ -1,13 +0,0 @@
|
|||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Created by Winston on 05/12/14.
|
||||
*/
|
||||
public class SystemTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.application;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AttsResourceHandlerTest {
|
||||
|
||||
@Test
|
||||
public void testHandle() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.application;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SnapshotPushPostbackHandlerTest {
|
||||
|
||||
@Test
|
||||
public void testHandle() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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 */
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.git.servlet;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class WLGitServletConfigTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.git.servlet;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class WLGitServletTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.git.util;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class RepositoryObjectTreeWalkerTest {
|
||||
|
||||
@Test
|
||||
public void testGetDirectoryContents() throws Exception {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class HTTPMethodTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.writelatex.api.request.exception;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class FailedConnectionExceptionTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AttachmentBlobTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class RawFileBlobTest {
|
||||
|
||||
@Test
|
||||
public void nothingToTest() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue