use of org.eclipse.egit.core.test.TestRepository in project egit by eclipse.
the class ProjectUtilTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
repository = new TestRepository(gitDir);
}
use of org.eclipse.egit.core.test.TestRepository in project egit by eclipse.
the class GitMoveDeleteHookTest method initRepoInsideProjectInsideWorkspace.
private TestProject initRepoInsideProjectInsideWorkspace() throws Exception {
TestProject project = new TestProject(true, "Project-1", true, workspaceSupplement);
File gitDir = new File(project.getProject().getLocationURI().getPath(), Constants.DOT_GIT);
testDirs.add(gitDir);
testRepository = new TestRepository(gitDir);
repository = testRepository.getRepository();
testRepository.connect(project.getProject());
registerWorkspaceRelativeTestDir("Project-1");
return project;
}
use of org.eclipse.egit.core.test.TestRepository in project egit by eclipse.
the class GitMoveDeleteHookTest method initRepoInsideProjectOutsideWorkspace.
private TestProject initRepoInsideProjectOutsideWorkspace() throws Exception {
TestProject project = new TestProject(true, "Project-1", false, workspaceSupplement);
File gitDir = new File(project.getProject().getLocationURI().getPath(), Constants.DOT_GIT);
testDirs.add(gitDir);
testRepository = new TestRepository(gitDir);
repository = testRepository.getRepository();
testRepository.connect(project.getProject());
return project;
}
use of org.eclipse.egit.core.test.TestRepository in project egit by eclipse.
the class ProjectReferenceImporterTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
testRepository = new TestRepository(gitDir);
repository = testRepository.getRepository();
RepositoryUtil util = Activator.getDefault().getRepositoryUtil();
util.addConfiguredRepository(repository.getDirectory());
}
use of org.eclipse.egit.core.test.TestRepository in project egit by eclipse.
the class AbstractGitFlowOperationTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
gitDir = new File(project.getProject().getLocationURI().getPath(), DOT_GIT);
testRepository = new TestRepository(gitDir);
testRepository.connect(project.getProject());
}
Aggregations