From 3a532a76df072725ebb477a2019fa2dca251e706 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Sun, 11 Jan 2015 09:11:12 +0000 Subject: [PATCH] Added integration test directory and wrote FileUtil and tests. --- services/git-bridge/src/it/java/TTest.java | 21 ++ .../uk/ac/ic/wlgitbridge/IntegrationTest.java | 15 ++ .../git-bridge/src/it/resources/state.json | 198 ++++++++++++++++++ .../test/state/SnapshotAPIState.java | 14 ++ .../test/state/SnapshotAPIStateBuilder.java | 152 ++++++++++++++ .../ac/ic/wlgitbridge/test/util/FileUtil.java | 63 ++++++ .../wlgitbridge/test/util/FileUtilTest.java | 61 ++++++ .../neq1/file.txt | 1 + .../neq1/neq1.txt | 0 .../neq2/file.txt | 1 + .../neq2/neq2.txt | 0 .../neq1/neq1/file.txt | 1 + .../neq2/neq2/file.txt | 1 + .../neq1/file.txt | 1 + .../neq2/file.txt | 1 + .../neq1/dir/file.txt | 1 + .../neq1/file.txt | 1 + .../neq2/dir/file.txt | 1 + .../neq2/file.txt | 1 + .../eq1/dir/file.txt | 1 + .../eq1/file.txt | 1 + .../eq2/dir/file.txt | 1 + .../eq2/file.txt | 1 + .../eq1/file.txt | 1 + .../eq2/file.txt | 1 + .../eq1/dir/file.txt | 1 + .../eq1/file.txt | 1 + .../eq2/dir/file.txt | 1 + .../eq2/file.txt | 1 + .../git-bridge/test/system/SystemTest.java | 13 -- .../unit/uk/ac/ic/wlgitbridge/MainTest.java | 15 -- .../application/AttsResourceHandlerTest.java | 12 -- .../wlgitbridge/application/ConfigTest.java | 32 --- .../SnapshotPushPostbackContentsTest.java | 17 -- .../SnapshotPushPostbackHandlerTest.java | 12 -- .../WLGitBridgeApplicationTest.java | 30 --- .../application/WLGitBridgeServerTest.java | 15 -- .../InvalidConfigFileExceptionTest.java | 13 -- .../InvalidProgramArgumentsExceptionTest.java | 15 -- .../application/jetty/NullLoggerTest.java | 16 -- .../bridge/WLBridgedProjectTest.java | 17 -- ...InvalidRootDirectoryPathExceptionTest.java | 15 -- .../git/handler/WLReceivePackFactoryTest.java | 15 -- .../git/handler/WLRepositoryResolverTest.java | 15 -- .../git/handler/WLUploadPackTest.java | 15 -- .../handler/hook/WriteLatexPutHookTest.java | 15 -- .../exception/ForcedPushExceptionTest.java | 22 -- .../git/servlet/WLGitServletConfigTest.java | 12 -- .../git/servlet/WLGitServletTest.java | 12 -- .../git/util/FileDirectoryContentsTest.java | 13 -- .../util/RepositoryObjectTreeWalkerTest.java | 11 - .../uk/ac/ic/wlgitbridge/util/UtilTest.java | 26 --- .../writelatex/ProjectLockTest.java | 18 -- .../writelatex/SnapshotFetcherTest.java | 33 --- .../SnapshotRepositoryBuilderTest.java | 15 -- .../WLDirectoryNodeSnapshotTest.java | 38 ---- .../writelatex/WriteLatexAPITest.java | 41 ---- .../api/request/base/HTTPMethodTest.java | 12 -- .../api/request/base/RequestTest.java | 14 -- .../api/request/base/ResultTest.java | 17 -- .../request/base/SnapshotAPIRequestTest.java | 15 -- .../FailedConnectionExceptionTest.java | 12 -- .../getdoc/SnapshotGetDocRequestTest.java | 15 -- .../getdoc/SnapshotGetDocResultTest.java | 16 -- .../InvalidProjectExceptionTest.java | 21 -- .../getforversion/SnapshotAttachmentTest.java | 23 -- .../getforversion/SnapshotDataTest.java | 23 -- .../getforversion/SnapshotFileTest.java | 33 --- .../SnapshotGetForVersionRequestTest.java | 15 -- .../SnapshotGetForVersionResultTest.java | 16 -- .../SnapshotGetSavedVersRequestTest.java | 15 -- .../SnapshotGetSavedVersResultTest.java | 18 -- .../getsavedvers/SnapshotInfoTest.java | 28 --- .../api/request/getsavedvers/WLUserTest.java | 16 -- .../request/push/PostbackContentsTest.java | 21 -- .../api/request/push/PostbackManagerTest.java | 23 -- .../push/SnapshotPushRequestResultTest.java | 16 -- .../request/push/SnapshotPushRequestTest.java | 23 -- .../exception/InvalidFilesExceptionTest.java | 23 -- .../InvalidProjectExceptionTest.java | 23 -- .../exception/OutOfDateExceptionTest.java | 23 -- .../SnapshotPostExceptionBuilderTest.java | 13 -- .../exception/SnapshotPostExceptionTest.java | 18 -- .../UnexpectedErrorExceptionTest.java | 21 -- .../UnexpectedPostbackExceptionTest.java | 12 -- .../filestore/GitDirectoryContentsTest.java | 28 --- .../filestore/RepositoryFileTest.java | 16 -- .../filestore/blob/AttachmentBlobTest.java | 12 -- .../writelatex/filestore/blob/BlobTest.java | 18 -- .../filestore/blob/ByteBlobTest.java | 18 -- .../filestore/blob/ExternalBlobTest.java | 18 -- .../filestore/blob/RawFileBlobTest.java | 12 -- .../filestore/node/AttachmentNodeTest.java | 33 --- .../filestore/node/BlobNodeTest.java | 23 -- .../filestore/node/FileNodeTest.java | 48 ----- .../filestore/node/WLDirectoryNodeTest.java | 38 ---- .../filestore/store/BlobHashTest.java | 18 -- .../filestore/store/FileIndexStoreTest.java | 38 ---- .../filestore/store/WLFileStoreTest.java | 38 ---- .../writelatex/model/SnapshotTest.java | 48 ----- .../writelatex/model/WLDataModelTest.java | 28 --- .../writelatex/model/WLProjectStoreTest.java | 21 -- .../writelatex/model/WLProjectTest.java | 33 --- .../model/db/WLGBPersistentStoreTest.java | 73 ------- .../model/db/sql/SQLiteWLDatabaseTest.java | 61 ------ ...etFileNodesForProjectNameSQLQueryTest.java | 23 -- .../query/GetProjectNamesSQLQueryTest.java | 23 -- ...LIndexTableForProjectNameSQLQueryTest.java | 23 -- ...tVersionIDsForProjectNameSQLQueryTest.java | 23 -- .../CreateFileNodeTableSQLUpdateTest.java | 18 -- .../CreateProjectsTableSQLUpdateTest.java | 18 -- .../CreateSnapshotsTableSQLUpdateTest.java | 18 -- .../CreateURLIndexStoreSQLUpdateTest.java | 16 -- ...eFileNodesForProjectNameSQLUpdateTest.java | 18 -- ...URLIndexesForProjectNameSQLUpdateTest.java | 18 -- .../insert/AddFileNodeBlobSQLUpdateTest.java | 18 -- .../AddFileNodeExternalSQLUpdateTest.java | 18 -- .../insert/AddProjectSQLUpdateTest.java | 18 -- .../insert/AddSnapshotSQLUpdateTest.java | 18 -- .../insert/AddURLIndexSQLUpdateTest.java | 16 -- services/git-bridge/writelatex-git-bridge.iml | 2 + 121 files changed, 546 insertions(+), 1956 deletions(-) create mode 100644 services/git-bridge/src/it/java/TTest.java create mode 100644 services/git-bridge/src/it/java/uk/ac/ic/wlgitbridge/IntegrationTest.java create mode 100644 services/git-bridge/src/it/resources/state.json create mode 100644 services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIStateBuilder.java create mode 100644 services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/util/FileUtil.java create mode 100644 services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/test/util/FileUtilTest.java create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/neq1.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/neq2.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt create mode 100644 services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt delete mode 100644 services/git-bridge/test/system/SystemTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLDataModelTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectStoreTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/WLGBPersistentStoreTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabaseTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQueryTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetProjectNamesSQLQueryTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetURLIndexTableForProjectNameSQLQueryTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetVersionIDsForProjectNameSQLQueryTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateFileNodeTableSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateProjectsTableSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateSnapshotsTableSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateURLIndexStoreSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteFileNodesForProjectNameSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteURLIndexesForProjectNameSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeBlobSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeExternalSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddProjectSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddSnapshotSQLUpdateTest.java delete mode 100644 services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddURLIndexSQLUpdateTest.java diff --git a/services/git-bridge/src/it/java/TTest.java b/services/git-bridge/src/it/java/TTest.java new file mode 100644 index 0000000000..7eb7e4fec1 --- /dev/null +++ b/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); + } + +} diff --git a/services/git-bridge/src/it/java/uk/ac/ic/wlgitbridge/IntegrationTest.java b/services/git-bridge/src/it/java/uk/ac/ic/wlgitbridge/IntegrationTest.java new file mode 100644 index 0000000000..8602695b25 --- /dev/null +++ b/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() { + + } + +} diff --git a/services/git-bridge/src/it/resources/state.json b/services/git-bridge/src/it/resources/state.json new file mode 100644 index 0000000000..49efcb3979 --- /dev/null +++ b/services/git-bridge/src/it/resources/state.json @@ -0,0 +1,198 @@ +[ + { + "project": "1826rqgsdb", + "getDoc": { + "versionID": 243, + "createdAt": "2014-11-30T18:40:58Z", + "email": "jdleesmiller+1@gmail.com", + "name": "John+1" + }, + "getSavedVers": [ + { + "versionID": 243, + "comment": "added more info on doc GET and error details", + "email": "jdleesmiller+1@gmail.com", + "name": "John+1", + "createdAt": "2014-11-30T18:47:01Z" + }, + { + "versionID": 185, + "comment": "with more details on POST request", + "email": "jdleesmiller+1@gmail.com", + "name": "John+1", + "createdAt": "2014-11-11T17:18:40Z" + }, + { + "versionID": 175, + "comment": "with updated PUT/POST request", + "email": "jdleesmiller+1@gmail.com", + "name": "John+1", + "createdAt": "2014-11-09T23:09:13Z" + }, + { + "versionID": 146, + "comment": "added PUT format", + "email": "jdleesmiller@gmail.com", + "name": "John Lees-Miller", + "createdAt": "2014-11-07T15:11:35Z" + }, + { + "versionID": 74, + "comment": "with example output", + "email": "jdleesmiller@gmail.com", + "name": "John Lees-Miller", + "createdAt": "2014-11-05T18:09:41Z" + }, + { + "versionID": 39, + "comment": "with more files", + "email": "jdleesmiller@gmail.com", + "name": "John Lees-Miller", + "createdAt": "2014-11-05T18:02:19Z" + }, + { + "versionID": 24, + "comment": "first draft", + "email": "jdleesmiller@gmail.com", + "name": "John Lees-Miller", + "createdAt": "2014-11-05T17:56:58Z" + } + ], + "getForVers": [ + { + "versionID": 243, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. This endpoint returns the latest version id, when the latest version was created (ISO8601), and the user that last edited the project (if any, otherwise null).\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n# => {\\n \\\"latestVerId\\\": 39,\\n \\\"latestVerAt\\\": \\\"2014-11-30T18:35:27Z\\\",\\n \\\"latestVerBy\\\": {\\n \\\"email\\\": \\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\": \\\"John Lees-Miller\\\"\\n }}\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. Note that this query is not currently paginated.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n# => [\\n {\\\"versionId\\\":39,\\n \\\"comment\\\":\\\"with more files\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T18:02:19Z\\\"},\\n {\\\"versionId\\\":24,\\n \\\"comment\\\":\\\"first draft\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T17:56:58Z\\\"}]\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\nThe srcs array contains (content, file name) pairs; the atts array contains (URL, file name) pairs.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/39\\n# => {\\n \\\"srcs\\\":[\\n [\\\"This text is from another file.\\\",\\\"foo/bar/test.tex\\\"],\\n [\\\"\\\\\\\\documentclass[a4paper]{article}\\\\n...\\\",\\\"main.tex\\\"]],\\n \\\"atts\\\":[\\n [\\\"https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png\\\",\\\"min_mean_wait_evm_7_eps_150dpi.png\\\"]]}\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\n\\\\subsection{Push a Project}\\n\\n\\\\begin{lstlisting}\\n# NB: JLM originally said PUT, but he now thinks POST is better\\n# NB: you must set a Content-Type: application/json header for this request\\n# in order to specify the data as JSON in the request body\\nPOST https://.../api/v0/docs/1826rqgsdb/snapshots\\nData:\\n{\\n latestVerId: integer,\\n files: [\\n {\\n name: string path (forward slashes, relative to root)\\n url: string (but only if the file is modified; else no url given)\\n }, ...\\n ]\\n postbackUrl: url to post result back to\\n}\\nResponse on success:\\n{\\n status: 202,\\n code: \\\"accepted\\\",\\n message: \\\"Accepted\\\"\\n}\\nResponse on out of date:\\n{\\n status: 409, # Conflict\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\n\\nPostback Data (METHOD POST):\\nOn success:\\n{\\n code: \\\"upToDate\\\",\\n latestVerId: integer\\n}\\nOn out of date:\\n{\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\nOn error with the files list (e.g. file extension not allowed):\\n{\\n code: \\\"invalidFiles\\\",\\n errors: [ {\\n file: the file name from the snapshot,\\n state: \\\"error\\\"|\\\"disallowed\\\"|\\\"unclean_name\\\"\\n }, ... ]\\n}\\nIf the file's error state is unclean_name, the error object will alsocontain a property cleanFile that contains the name of the file after it has been \\\"cleaned\\\" to meet our file naming requirements; for other file error states, this property is not present.\\nOn error with the project as a whole (e.g. over quota):\\n{\\n code: \\\"invalidProject\\\",\\n message: short string message for debugging\\n errors: [ array of zero or more string messages for the user ]\\n}\\nOn unexpected error (bug):\\n{\\n code: \\\"error\\\",\\n message: \\\"Unexpected Error\\\"\\n}\\n\\\\end{lstlisting}\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as one of your test projects. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 185, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n# => { latestVerId: 39 }\\nTODO will also include updatedAt time and user (if it was not anonymous)\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. Note that this query is not currently paginated.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n# => [\\n {\\\"versionId\\\":39,\\n \\\"comment\\\":\\\"with more files\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T18:02:19Z\\\"},\\n {\\\"versionId\\\":24,\\n \\\"comment\\\":\\\"first draft\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T17:56:58Z\\\"}]\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\nThe srcs array contains (content, file name) pairs; the atts array contains (URL, file name) pairs.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/39\\n# => {\\n \\\"srcs\\\":[\\n [\\\"This text is from another file.\\\",\\\"foo/bar/test.tex\\\"],\\n [\\\"\\\\\\\\documentclass[a4paper]{article}\\\\n...\\\",\\\"main.tex\\\"]],\\n \\\"atts\\\":[\\n [\\\"https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png\\\",\\\"min_mean_wait_evm_7_eps_150dpi.png\\\"]]}\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\n\\\\subsection{Push a Project}\\n\\n\\\\begin{lstlisting}\\n# NB: JLM originally said PUT, but he now thinks POST is better\\n# NB: you must set a Content-Type: application/json header for this request\\n# in order to specify the data as JSON in the request body\\nPOST https://.../api/v0/docs/1826rqgsdb/snapshots\\nData:\\n{\\n latestVerId: integer,\\n files: [\\n {\\n name: string path (forward slashes, relative to root)\\n url: string (but only if the file is modified; else no url given)\\n }, ...\\n ]\\n postbackUrl: url to post result back to\\n}\\nResponse on success:\\n{\\n status: 202,\\n code: \\\"accepted\\\",\\n message: \\\"Accepted\\\"\\n}\\nResponse on out of date:\\n{\\n status: 409, # Conflict\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\n\\nPostback Data (METHOD POST):\\nOn success:\\n{\\n code: \\\"upToDate\\\",\\n latestVerId: integer\\n}\\nOn out of date:\\n{\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\nOn error with the files list (e.g. file extension not allowed):\\n{\\n code: \\\"invalidFiles\\\",\\n errors: TODO\\n}\\nOn error with the project as a whole (e.g. over quota):\\n{\\n code: \\\"invalidProject\\\",\\n errors: TODO\\n}\\nOn unexpected error (bug):\\n{\\n code: \\\"error\\\",\\n message: \\\"Unexpected Error\\\"\\n}\\n\\\\end{lstlisting}\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as one of your test projects. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 175, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n# => { latestVerId: 39 }\\nTODO will also include updatedAt time and user (if it was not anonymous)\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. Note that this query is not currently paginated.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n# => [\\n {\\\"versionId\\\":39,\\n \\\"comment\\\":\\\"with more files\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T18:02:19Z\\\"},\\n {\\\"versionId\\\":24,\\n \\\"comment\\\":\\\"first draft\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T17:56:58Z\\\"}]\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\nThe srcs array contains (content, file name) pairs; the atts array contains (URL, file name) pairs.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/39\\n# => {\\n \\\"srcs\\\":[\\n [\\\"This text is from another file.\\\",\\\"foo/bar/test.tex\\\"],\\n [\\\"\\\\\\\\documentclass[a4paper]{article}\\\\n...\\\",\\\"main.tex\\\"]],\\n \\\"atts\\\":[\\n [\\\"https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png\\\",\\\"min_mean_wait_evm_7_eps_150dpi.png\\\"]]}\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\n\\\\subsection{Push a Project}\\n\\n\\\\begin{lstlisting}\\n# NB: JLM originally said PUT, but he now thinks POST is better\\n# NB: you must set a Content-Type: application/json header for this request\\n# in order to specify the data as JSON in the request body\\nPOST https://.../api/v0/docs/1826rqgsdb/snapshots\\nData:\\n{\\n latestVerId: integer,\\n files: [\\n {\\n name: string path (forward slashes, relative to root)\\n url: string (but only if the file is modified; else no url given)\\n }, ...\\n ]\\n postbackUrl: url to post result back to\\n}\\nResponse on success:\\n{\\n status: 202,\\n code: \\\"accepted\\\",\\n message: \\\"Accepted\\\"\\n}\\nResponse on out of date:\\n{\\n status: 409, # Conflict\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\n\\nPostback Data (METHOD POST):\\nOn success:\\n{\\n code: \\\"upToDate\\\",\\n latestVerId: integer\\n}\\nOn out of date:\\n{\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\nOn error:\\n{\\n code: \\\"invalidFile\\\",\\n TODO\\n}\\n\\\\end{lstlisting}\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as one of your test projects. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 146, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n# => { latestVerId: 39 }\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. Note that this query is not currently paginated.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n# => [\\n {\\\"versionId\\\":39,\\n \\\"comment\\\":\\\"with more files\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T18:02:19Z\\\"},\\n {\\\"versionId\\\":24,\\n \\\"comment\\\":\\\"first draft\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T17:56:58Z\\\"}]\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\nThe srcs array contains (content, file name) pairs; the atts array contains (URL, file name) pairs.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/39\\n# => {\\n \\\"srcs\\\":[\\n [\\\"This text is from another file.\\\",\\\"foo/bar/test.tex\\\"],\\n [\\\"\\\\\\\\documentclass[a4paper]{article}\\\\n...\\\",\\\"main.tex\\\"]],\\n \\\"atts\\\":[\\n [\\\"https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png\\\",\\\"min_mean_wait_evm_7_eps_150dpi.png\\\"]]}\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\n\\\\subsection{Push a Project}\\n\\n\\\\begin{lstlisting}\\nPUT https://.../api/v0/docs/1826rqgsdb/snapshots\\nData:\\n{\\n latestVerId: integer,\\n files: [\\n {\\n name: string path (forward slashes, relative to root)\\n url: string (but only if the file is modified; else no url given)\\n }, ...\\n ]\\n postbackUrl: url to post result back to\\n}\\nResponse on success:\\n{\\n status: 20x,\\n}\\nResponse on out of date:\\n{\\n status: 40x,\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\n\\nPostback Data (METHOD POST):\\nOn success:\\n{\\n code: \\\"upToDate\\\",\\n latestVerId: integer\\n}\\nOn out of date:\\n{\\n code: \\\"outOfDate\\\",\\n message: \\\"Out of Date\\\"\\n}\\nOn error:\\n{\\n code: \\\"invalidFile\\\",\\n TODO\\n}\\n\\\\end{lstlisting}\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as one of your test projects. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 74, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n# => { latestVerId: 39 }\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. Note that this query is not currently paginated.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n# => [\\n {\\\"versionId\\\":39,\\n \\\"comment\\\":\\\"with more files\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T18:02:19Z\\\"},\\n {\\\"versionId\\\":24,\\n \\\"comment\\\":\\\"first draft\\\",\\n \\\"user\\\":{\\n \\\"email\\\":\\\"jdleesmiller@gmail.com\\\",\\n \\\"name\\\":\\\"John Lees-Miller\\\"},\\n \\\"createdAt\\\":\\\"2014-11-05T17:56:58Z\\\"}]\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\nThe srcs array contains (content, file name) pairs; the atts array contains (URL, file name) pairs.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/39\\n# => {\\n \\\"srcs\\\":[\\n [\\\"This text is from another file.\\\",\\\"foo/bar/test.tex\\\"],\\n [\\\"\\\\\\\\documentclass[a4paper]{article}\\\\n...\\\",\\\"main.tex\\\"]],\\n \\\"atts\\\":[\\n [\\\"https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png\\\",\\\"min_mean_wait_evm_7_eps_150dpi.png\\\"]]}\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\nTODO still working on this part\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as a test project. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 39, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server, \\\\url{radiant-wind-3058.herokuapp.com}, but they're not on the production server yet.\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. To list saved versions for a doc:\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/saved_vers\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\n\\\\begin{lstlisting}\\nGET https://.../api/v0/docs/1826rqgsdb/snapshots/1\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\nTODO still working on this part\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as a test project. I've added an attachment and a file in a subfolder to make it a bit more interesting.\\n\\n\\\\input{foo/bar/test}\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + }, + { + "content": "This text is from another file.", + "path": "foo/bar/test.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + }, + { + "versionID": 24, + "srcs": [ + { + "content": "\\\\documentclass[a4paper]{article}\\n\\n\\\\usepackage[english]{babel}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{graphicx}\\n\\\\usepackage{fullpage}\\n\\\\usepackage{listings}\\n\\\\usepackage{courier}\\n\\\\usepackage{url}\\n\\n\\\\lstset{basicstyle=\\\\ttfamily,breaklines=true}\\n\\n\\\\begin{document}\\n\\\\title{API for the writeLaTeX-Git Bridge}\\n\\\\author{JLM}\\n\\\\date{\\\\today}\\n\\\\maketitle\\n\\n\\\\section{Fetching a Project from WriteLaTeX}\\n\\nThere are three API calls that will likely be of interest. You can run them against this server (radiant-wind-3058.herokuapp.com).\\n\\n\\\\subsection{Get Doc}\\n\\nA ``doc'' is our internal term for a ``project''. At present, this just returns the latest version number.\\n\\n\\\\begin{lstlisting}\\nGET https://radiant-wind.....com/api/v0/docs/1826rqgsdb\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Saved Vers}\\n\\nA ``saved ver'' is a version of a doc, saved by via the versions menu. To list saved versions for a doc:\\n\\n\\\\begin{lstlisting}\\nGET https://radiant-wind.....com/api/v0/docs/1826rqgsdb/saved_vers\\n\\\\end{lstlisting}\\n\\n\\\\subsection{Get Snapshot for Version}\\n\\nA snapshot contains the content of a project in the given version. You can safely request a snapshot of any version that is, or was at any point in the last 24 hours, (1) a saved version, or (2) the current version. (Older versions may or may not have been moved to cold storage.)\\n\\n\\\\begin{lstlisting}\\nGET https://radiant-wind.....com/api/v0/docs/1826rqgsdb/snapshots/1\\n\\\\end{lstlisting}\\n\\n\\\\section{Pushing a Project to WriteLaTeX}\\n\\nTODO still working on this part\\n\\n\\\\section{Test Data}\\n\\nYou can use this project as a test project. Here is an extra file to make it a bit more interesting.\\n\\n\\\\includegraphics[width=\\\\linewidth]{min_mean_wait_evm_7_eps_150dpi}\\n\\n\\\\end{document}", + "path": "main.tex" + } + ], + "atts": [ + { + "url": "https://writelatex-staging.s3.amazonaws.com/filepicker/1ENnu6zJSGyslI3DuNZD_min_mean_wait_evm_7.eps.150dpi.png", + "path": "min_mean_wait_evm_7_eps_150dpi.png" + } + ] + } + ], + "push": "success", + "postback": { + "type": "success", + "versionID": 244 + } + } +] \ No newline at end of file diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java index e628aec501..40b05fc3b1 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIState.java @@ -24,7 +24,21 @@ public class SnapshotAPIState { private Map push; private Map postback; + public SnapshotAPIState(Map getDoc, + Map getSavedVers, + Map> getForVers, + Map push, + Map postback) { + + this.getDoc = getDoc; + this.getSavedVers = getSavedVers; + this.getForVers = getForVers; + this.push = push; + this.postback = postback; + } + public SnapshotAPIState() { + getDoc = new HashMap(); getDoc.put("1826rqgsdb", new SnapshotGetDocResult(243, "2014-11-30T18:40:58Z", "jdleesmiller+1@gmail.com", "John+1")); diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIStateBuilder.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/state/SnapshotAPIStateBuilder.java new file mode 100644 index 0000000000..7e5e4d53a0 --- /dev/null +++ b/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 getDoc = new HashMap(); + private Map getSavedVers = new HashMap(); + private Map> getForVers = new HashMap>(); + private Map push = new HashMap(); + private Map postback = new HashMap(); + + 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 savedVers = new LinkedList(); + 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 forVers = new HashMap(); + 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 getSrcs(JsonArray jsonSrcs) { + List srcs = new LinkedList(); + 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 getAtts(JsonArray jsonAtts) { + List atts = new LinkedList(); + 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()); + } else if (type.equals("invalidProject")) { + p = new SnapshotPostbackRequestInvalidProject(new LinkedList()); + } else if (type.equals("error")) { + p = new SnapshotPostbackRequestError(); + } else { + throw new IllegalArgumentException("invalid postback type"); + } + postback.put(projectName, p); + } + +} diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/util/FileUtil.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/test/util/FileUtil.java new file mode 100644 index 0000000000..2e0f7d6971 --- /dev/null +++ b/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 dir1Contents = getAllFilesRecursivelyInDirectoryApartFrom(dir1, dir1.resolve(".git")); + Set dir2Contents = getAllFilesRecursivelyInDirectoryApartFrom(dir2, dir2.resolve(".git")); + return dir1Contents.equals(dir2Contents) && directoryContentsEqual(dir1Contents, dir1, dir2); + } + + static boolean directoryContentsEqual(Set 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 getAllFilesRecursivelyInDirectoryApartFrom(Path dir, Path excluded) { + if (!dir.toFile().isDirectory()) { + throw new IllegalArgumentException("need a directory"); + } + return getAllFilesRecursively(dir, dir, excluded); + } + + static Set getAllFilesRecursively(Path baseDir, Path dir, Path excluded) { + Set files = new HashSet(); + 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; + } + +} diff --git a/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/test/util/FileUtilTest.java b/services/git-bridge/src/test/java/uk/ac/ic/wlgitbridge/test/util/FileUtilTest.java new file mode 100644 index 0000000000..9181b73a4d --- /dev/null +++ b/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)); + } + +} \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/neq1.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq1/neq1.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/neq2.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfFileNamesAreNotEqual/neq2/neq2.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq1/neq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseIfInnerDirectoryNamesAreNotEqual/neq2/neq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt new file mode 100644 index 0000000000..81c545efeb --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenFilesAreNotEqualInBothDirectories/neq2/file.txt @@ -0,0 +1 @@ +1234 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt new file mode 100644 index 0000000000..274c0052dd --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/dir/file.txt @@ -0,0 +1 @@ +1234 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/dir/file.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsFalseWhenRecursiveFilesAreNotEqualInBothDirectories/neq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/dir/file.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/dir/file.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueEvenIfGitDirectoriesAreNotEqual/eq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenFilesAreEqualInBothDirectories/eq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/dir/file.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq1/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt new file mode 100644 index 0000000000..d800886d9c --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/dir/file.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt new file mode 100644 index 0000000000..e56e15bb7d --- /dev/null +++ b/services/git-bridge/src/test/resources/uk/ac/ic/wlgitbridge/test/util/FileUtilTest/returnsTrueWhenRecursiveFilesAreEqualInBothDirectories/eq2/file.txt @@ -0,0 +1 @@ +12345 diff --git a/services/git-bridge/test/system/SystemTest.java b/services/git-bridge/test/system/SystemTest.java deleted file mode 100644 index 25e6a1db06..0000000000 --- a/services/git-bridge/test/system/SystemTest.java +++ /dev/null @@ -1,13 +0,0 @@ -import org.junit.Test; - -/** - * Created by Winston on 05/12/14. - */ -public class SystemTest { - - @Test - public void nothingToTest() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java deleted file mode 100644 index 1d41019063..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/MainTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java deleted file mode 100644 index 9674b35f13..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/AttsResourceHandlerTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.application; - -import org.junit.Test; - -public class AttsResourceHandlerTest { - - @Test - public void testHandle() throws Exception { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java deleted file mode 100644 index 1f8e5385d6..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/ConfigTest.java +++ /dev/null @@ -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 { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java deleted file mode 100644 index 73031cc87b..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackContentsTest.java +++ /dev/null @@ -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 { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java deleted file mode 100644 index ae1e48b147..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandlerTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.application; - -import org.junit.Test; - -public class SnapshotPushPostbackHandlerTest { - - @Test - public void testHandle() throws Exception { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java deleted file mode 100644 index 06938952c5..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeApplicationTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java deleted file mode 100644 index f39a5b0e98..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/WLGitBridgeServerTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java deleted file mode 100644 index 94b24e7804..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidConfigFileExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java deleted file mode 100644 index f83e9ddf2e..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/exception/InvalidProgramArgumentsExceptionTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java deleted file mode 100644 index 759c7b05ca..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/application/jetty/NullLoggerTest.java +++ /dev/null @@ -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() { - - } - - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java deleted file mode 100644 index f9d02d7c82..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/bridge/WLBridgedProjectTest.java +++ /dev/null @@ -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 */ - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java deleted file mode 100644 index 3cc9766f94..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathExceptionTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java deleted file mode 100644 index 37f81f8946..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLReceivePackFactoryTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java deleted file mode 100644 index 7c0c2aa951..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolverTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java deleted file mode 100644 index fe98bd1589..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/WLUploadPackTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java deleted file mode 100644 index 3f9eea6745..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHookTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java deleted file mode 100644 index 2d1615502f..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/handler/hook/exception/ForcedPushExceptionTest.java +++ /dev/null @@ -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 { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java deleted file mode 100644 index 419b1f553a..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletConfigTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.git.servlet; - -import org.junit.Test; - -public class WLGitServletConfigTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java deleted file mode 100644 index 76b3025aff..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/servlet/WLGitServletTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.git.servlet; - -import org.junit.Test; - -public class WLGitServletTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java deleted file mode 100644 index c20daa1945..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/FileDirectoryContentsTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java deleted file mode 100644 index fd11f49b88..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/git/util/RepositoryObjectTreeWalkerTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package uk.ac.ic.wlgitbridge.git.util; - -import org.junit.Test; - -public class RepositoryObjectTreeWalkerTest { - - @Test - public void testGetDirectoryContents() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java deleted file mode 100644 index 08c0b97c52..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/util/UtilTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java deleted file mode 100644 index ca76c3cbd8..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/ProjectLockTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java deleted file mode 100644 index 3bc7624559..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotFetcherTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java deleted file mode 100644 index 2bc5d799db..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/SnapshotRepositoryBuilderTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java deleted file mode 100644 index c358936a7b..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshotTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java deleted file mode 100644 index 940cb1a693..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPITest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java deleted file mode 100644 index 5480a58eec..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/HTTPMethodTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.api.request.base; - -import org.junit.Test; - -public class HTTPMethodTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java deleted file mode 100644 index 072030223c..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/RequestTest.java +++ /dev/null @@ -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() { - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java deleted file mode 100644 index eb634ff5d4..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/ResultTest.java +++ /dev/null @@ -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 { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java deleted file mode 100644 index 580c608f5c..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/base/SnapshotAPIRequestTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java deleted file mode 100644 index 270485aa21..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/exception/FailedConnectionExceptionTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.api.request.exception; - -import org.junit.Test; - -public class FailedConnectionExceptionTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java deleted file mode 100644 index ac32ed8066..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocRequestTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java deleted file mode 100644 index c7995f42e6..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/SnapshotGetDocResultTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java deleted file mode 100644 index 39cc7cdfe9..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getdoc/exception/InvalidProjectExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java deleted file mode 100644 index c3606f5c15..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotAttachmentTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java deleted file mode 100644 index f114ac840a..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotDataTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java deleted file mode 100644 index e6d5656740..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotFileTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java deleted file mode 100644 index d94be9c5a8..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionRequestTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java deleted file mode 100644 index f1c5bc2b34..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getforversion/SnapshotGetForVersionResultTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java deleted file mode 100644 index 6f51a249f1..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersRequestTest.java +++ /dev/null @@ -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() { - - } - -} diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java deleted file mode 100644 index 029da36044..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotGetSavedVersResultTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java deleted file mode 100644 index 0c283f830f..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/SnapshotInfoTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java deleted file mode 100644 index 131393754d..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/getsavedvers/WLUserTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java deleted file mode 100644 index 06c094c642..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackContentsTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java deleted file mode 100644 index e4e6556b89..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/PostbackManagerTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java deleted file mode 100644 index 47915dd2a9..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestResultTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java deleted file mode 100644 index 3392d5c85a..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/SnapshotPushRequestTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java deleted file mode 100644 index 57d957fcfc..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidFilesExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java deleted file mode 100644 index 9e24e85461..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/InvalidProjectExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java deleted file mode 100644 index 806328f6fd..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/OutOfDateExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java deleted file mode 100644 index 60884b6fe4..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionBuilderTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java deleted file mode 100644 index dc1bcfc2b6..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/SnapshotPostExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java deleted file mode 100644 index 88cf7ed13f..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedErrorExceptionTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java deleted file mode 100644 index e06dcf8e9b..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/api/request/push/exception/UnexpectedPostbackExceptionTest.java +++ /dev/null @@ -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() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java deleted file mode 100644 index 4893c1538f..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/GitDirectoryContentsTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java deleted file mode 100644 index a5452a0f8e..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/RepositoryFileTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java deleted file mode 100644 index 72ce3a64bb..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/AttachmentBlobTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.filestore.blob; - -import org.junit.Test; - -public class AttachmentBlobTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java deleted file mode 100644 index d977233bb4..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/BlobTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java deleted file mode 100644 index d2f8600f52..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ByteBlobTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java deleted file mode 100644 index 3e60ec6b2b..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/ExternalBlobTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java deleted file mode 100644 index cde657adff..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/blob/RawFileBlobTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.filestore.blob; - -import org.junit.Test; - -public class RawFileBlobTest { - - @Test - public void nothingToTest() { - - } - -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java deleted file mode 100644 index 6a375084f4..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/AttachmentNodeTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java deleted file mode 100644 index b807519181..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/BlobNodeTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java deleted file mode 100644 index f22506b95a..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/FileNodeTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java deleted file mode 100644 index e4b00c6d6a..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNodeTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java deleted file mode 100644 index e49fc14ac9..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/BlobHashTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java deleted file mode 100644 index 2b3d17aa52..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/FileIndexStoreTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java deleted file mode 100644 index 97fed9f67e..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/filestore/store/WLFileStoreTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java deleted file mode 100644 index 3254b86547..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/SnapshotTest.java +++ /dev/null @@ -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 { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLDataModelTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLDataModelTest.java deleted file mode 100644 index efb6bf759e..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLDataModelTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class WLDataModelTest { - - @Test - public void testUpdateProjectWithName() throws Exception { - - } - - @Test - public void testGetProjectWithName() throws Exception { - - } - - @Test - public void testCreateCandidateSnapshotFromProjectWithContents() throws Exception { - - } - - @Test - public void testApproveSnapshot() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectStoreTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectStoreTest.java deleted file mode 100644 index 3aab7afa61..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectStoreTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model; - -import org.junit.Test; - -public class WLProjectStoreTest { - - @Test - public void testGetProjectWithName() throws Exception { - - } - - @Test - public void testGetProjectNames() throws Exception { - - } - - @Test - public void testInitFromPersistentStore() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectTest.java deleted file mode 100644 index 3a99ebf7b8..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/WLProjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class WLProjectTest { - - @Test - public void testFetchNewSnapshots() throws Exception { - - } - - @Test - public void testGetName() throws Exception { - - } - - @Test - public void testGetLatestSnapshotID() throws Exception { - - } - - @Test - public void testPutLatestSnapshot() throws Exception { - - } - - @Test - public void testInitFromPersistentStore() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/WLGBPersistentStoreTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/WLGBPersistentStoreTest.java deleted file mode 100644 index 3fe4046fbf..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/WLGBPersistentStoreTest.java +++ /dev/null @@ -1,73 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class WLGBPersistentStoreTest { - - @Test - public void testLoadProjectStore() throws Exception { - - } - - @Test - public void testLoadFileStore() throws Exception { - - } - - @Test - public void testAddProject() throws Exception { - - } - - @Test - public void testAddSnapshot() throws Exception { - - } - - @Test - public void testAddFileNodeBlob() throws Exception { - - } - - @Test - public void testAddFileNodeExternal() throws Exception { - - } - - @Test - public void testAddURLIndex() throws Exception { - - } - - @Test - public void testGetProjectNames() throws Exception { - - } - - @Test - public void testGetVersionIDsForProjectName() throws Exception { - - } - - @Test - public void testGetFileNodesForProjectName() throws Exception { - - } - - @Test - public void testGetURLIndexTableForProjectName() throws Exception { - - } - - @Test - public void testDeleteFileNodesForProjectName() throws Exception { - - } - - @Test - public void testDeleteURLIndexesForProjectName() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabaseTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabaseTest.java deleted file mode 100644 index 69181d02f2..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabaseTest.java +++ /dev/null @@ -1,61 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql; - -import org.junit.Test; - -public class SQLiteWLDatabaseTest { - - @Test - public void testAddProject() throws Exception { - - } - - @Test - public void testAddSnapshot() throws Exception { - - } - - @Test - public void testAddFileNodeBlob() throws Exception { - - } - - @Test - public void testAddFileNodeExternal() throws Exception { - - } - - @Test - public void testAddURLIndex() throws Exception { - - } - - @Test - public void testGetProjectNames() throws Exception { - - } - - @Test - public void testGetVersionIDsForProjectName() throws Exception { - - } - - @Test - public void testGetFileNodesForProjectName() throws Exception { - - } - - @Test - public void testGetURLIndexTableForProjectName() throws Exception { - - } - - @Test - public void testDeleteFileNodesForProjectName() throws Exception { - - } - - @Test - public void testDeleteURLIndexesForProjectName() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQueryTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQueryTest.java deleted file mode 100644 index 9dca3ff7de..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQueryTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class GetFileNodesForProjectNameSQLQueryTest { - - @Test - public void testProcessResultSet() throws Exception { - - } - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetProjectNamesSQLQueryTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetProjectNamesSQLQueryTest.java deleted file mode 100644 index c64f563492..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetProjectNamesSQLQueryTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class GetProjectNamesSQLQueryTest { - - @Test - public void testProcessResultSet() throws Exception { - - } - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetURLIndexTableForProjectNameSQLQueryTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetURLIndexTableForProjectNameSQLQueryTest.java deleted file mode 100644 index cba820e8d6..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetURLIndexTableForProjectNameSQLQueryTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class GetURLIndexTableForProjectNameSQLQueryTest { - - @Test - public void testProcessResultSet() throws Exception { - - } - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetVersionIDsForProjectNameSQLQueryTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetVersionIDsForProjectNameSQLQueryTest.java deleted file mode 100644 index 0a42fe9af0..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetVersionIDsForProjectNameSQLQueryTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class GetVersionIDsForProjectNameSQLQueryTest { - - @Test - public void testProcessResultSet() throws Exception { - - } - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateFileNodeTableSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateFileNodeTableSQLUpdateTest.java deleted file mode 100644 index 693fa0094c..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateFileNodeTableSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.create; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class CreateFileNodeTableSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateProjectsTableSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateProjectsTableSQLUpdateTest.java deleted file mode 100644 index fe69d554dc..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateProjectsTableSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.create; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class CreateProjectsTableSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateSnapshotsTableSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateSnapshotsTableSQLUpdateTest.java deleted file mode 100644 index f20030e45b..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateSnapshotsTableSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.create; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class CreateSnapshotsTableSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateURLIndexStoreSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateURLIndexStoreSQLUpdateTest.java deleted file mode 100644 index 0dc9c30e83..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/create/CreateURLIndexStoreSQLUpdateTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.create; - -import org.junit.Test; - -public class CreateURLIndexStoreSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteFileNodesForProjectNameSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteFileNodesForProjectNameSQLUpdateTest.java deleted file mode 100644 index 3a779ac901..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteFileNodesForProjectNameSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.delete; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class DeleteFileNodesForProjectNameSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteURLIndexesForProjectNameSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteURLIndexesForProjectNameSQLUpdateTest.java deleted file mode 100644 index 8f8a2a3057..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/delete/DeleteURLIndexesForProjectNameSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.delete; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class DeleteURLIndexesForProjectNameSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeBlobSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeBlobSQLUpdateTest.java deleted file mode 100644 index c0fd5d8ec3..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeBlobSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.insert; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class AddFileNodeBlobSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeExternalSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeExternalSQLUpdateTest.java deleted file mode 100644 index a7056f67e8..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddFileNodeExternalSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.insert; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class AddFileNodeExternalSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddProjectSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddProjectSQLUpdateTest.java deleted file mode 100644 index 5804cf408f..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddProjectSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.insert; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class AddProjectSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddSnapshotSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddSnapshotSQLUpdateTest.java deleted file mode 100644 index ed8291b010..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddSnapshotSQLUpdateTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.insert; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class AddSnapshotSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddURLIndexSQLUpdateTest.java b/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddURLIndexSQLUpdateTest.java deleted file mode 100644 index d554dc8e6e..0000000000 --- a/services/git-bridge/test/unit/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/update/insert/AddURLIndexSQLUpdateTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.insert; - -import org.junit.Test; - -public class AddURLIndexSQLUpdateTest { - - @Test - public void testGetSQL() throws Exception { - - } - - @Test - public void testAddParametersToStatement() throws Exception { - - } -} \ No newline at end of file diff --git a/services/git-bridge/writelatex-git-bridge.iml b/services/git-bridge/writelatex-git-bridge.iml index 309e9c3214..090bc89d86 100644 --- a/services/git-bridge/writelatex-git-bridge.iml +++ b/services/git-bridge/writelatex-git-bridge.iml @@ -11,6 +11,8 @@ + +