Package org.eclipse.jgit.junit

Examples of org.eclipse.jgit.junit.MockSystemReader


  @Before
  public void setUp() throws Exception {
    // ensure there are no shared Repository instances left
    // when starting a new test
    Activator.getDefault().getRepositoryCache().clear();
    MockSystemReader mockSystemReader = new MockSystemReader();
    SystemReader.setInstance(mockSystemReader);
    mockSystemReader.setProperty(Constants.GIT_CEILING_DIRECTORIES_KEY,
        ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile()
            .getParentFile().getAbsoluteFile().toString());
    project = new TestProject(true);
    gitDir = new File(project.getProject().getWorkspace().getRoot()
        .getRawLocation().toFile(), Constants.DOT_GIT);
View Full Code Here


  File workspace;

  @Before
  public void setUp() throws Exception {
    Activator.getDefault().getRepositoryCache().clear();
    MockSystemReader mockSystemReader = new MockSystemReader();
    SystemReader.setInstance(mockSystemReader);
    mockSystemReader.setProperty(Constants.GIT_CEILING_DIRECTORIES_KEY,
        ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile()
            .getParentFile().getAbsoluteFile().toString());
    workspaceSupplement = testUtils.createTempDir("wssupplement");
    testDirs.add(testUtils.getBaseTempDir());
    workspace = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().getAbsoluteFile();
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.junit.MockSystemReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.