Search in sources :

Example 6 with GitRepositoryManager

use of com.google.gerrit.server.git.GitRepositoryManager in project gerrit by GerritCodeReview.

the class NoteDbSchemaVersionCheckTest method setup.

@Before
public void setup() throws Exception {
    AllProjectsName allProjectsName = new AllProjectsName("All-Projects");
    GitRepositoryManager repoManager = new InMemoryRepositoryManager();
    repoManager.createRepository(allProjectsName);
    versionManager = new NoteDbSchemaVersionManager(allProjectsName, repoManager);
    versionManager.init();
    sitePaths = new SitePaths(Paths.get("/tmp/foo"));
}
Also used : AllProjectsName(com.google.gerrit.server.config.AllProjectsName) InMemoryRepositoryManager(com.google.gerrit.testing.InMemoryRepositoryManager) GitRepositoryManager(com.google.gerrit.server.git.GitRepositoryManager) SitePaths(com.google.gerrit.server.config.SitePaths) Before(org.junit.Before)

Aggregations

GitRepositoryManager (com.google.gerrit.server.git.GitRepositoryManager)6 FactoryModule (com.google.gerrit.extensions.config.FactoryModule)2 CurrentUser (com.google.gerrit.server.CurrentUser)2 AllProjectsName (com.google.gerrit.server.config.AllProjectsName)2 AbstractChangeNotes (com.google.gerrit.server.notedb.AbstractChangeNotes)2 ChangeNotes (com.google.gerrit.server.notedb.ChangeNotes)2 ChangeUpdate (com.google.gerrit.server.notedb.ChangeUpdate)2 InMemoryRepositoryManager (com.google.gerrit.testing.InMemoryRepositoryManager)2 TestRepository (org.eclipse.jgit.junit.TestRepository)2 PersonIdent (org.eclipse.jgit.lib.PersonIdent)2 Ref (org.eclipse.jgit.lib.Ref)2 Repository (org.eclipse.jgit.lib.Repository)2 Before (org.junit.Before)2 ExternalIdNotes (com.google.gerrit.server.account.externalids.ExternalIdNotes)1 AllUsersName (com.google.gerrit.server.config.AllUsersName)1 SitePaths (com.google.gerrit.server.config.SitePaths)1 DeleteZombieCommentsRefs (com.google.gerrit.server.notedb.DeleteZombieCommentsRefs)1 NotesMigration (com.google.gerrit.server.notedb.NotesMigration)1