Package org.eclipse.core.filesystem

Examples of org.eclipse.core.filesystem.IFileStore.fetchInfo()


    assertTrue(archiveFolder.fetchInfo().isDirectory());
    IFileStore archiveOrgFolder = archiveFolder.getChild(orgFolderName);
    assertTrue(archiveOrgFolder.fetchInfo().exists());
    assertTrue(archiveOrgFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveOrgFolder.getChild(invalid);
    assertTrue(archivedFolder.fetchInfo().exists());
    assertTrue(archivedFolder.fetchInfo().isDirectory());
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
  }

  @Test
View Full Code Here


    IFileStore archiveOrgFolder = archiveFolder.getChild(orgFolderName);
    assertTrue(archiveOrgFolder.fetchInfo().exists());
    assertTrue(archiveOrgFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveOrgFolder.getChild(invalid);
    assertTrue(archivedFolder.fetchInfo().exists());
    assertTrue(archivedFolder.fetchInfo().isDirectory());
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
  }

  @Test
  public void testArchiveInvalidMetaDataFolderInServerWorkspaceRoot() throws CoreException {
View Full Code Here

    // create a invalid metadata folder
    IFileStore rootLocation = OrionConfiguration.getRootLocation();
    String invalid = "delete.me";
    IFileStore invalidFolderAtRoot = rootLocation.getChild(invalid);
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
    invalidFolderAtRoot.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderAtRoot.fetchInfo().exists());
    assertTrue(invalidFolderAtRoot.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
View Full Code Here

    IFileStore rootLocation = OrionConfiguration.getRootLocation();
    String invalid = "delete.me";
    IFileStore invalidFolderAtRoot = rootLocation.getChild(invalid);
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
    invalidFolderAtRoot.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderAtRoot.fetchInfo().exists());
    assertTrue(invalidFolderAtRoot.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);
View Full Code Here

    String invalid = "delete.me";
    IFileStore invalidFolderAtRoot = rootLocation.getChild(invalid);
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
    invalidFolderAtRoot.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderAtRoot.fetchInfo().exists());
    assertTrue(invalidFolderAtRoot.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);
View Full Code Here

    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
    assertTrue(archiveFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveFolder.getChild(invalid);
    assertTrue(archivedFolder.fetchInfo().exists());
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
  }
View Full Code Here

    assertNotNull(users);

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
    assertTrue(archiveFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveFolder.getChild(invalid);
    assertTrue(archivedFolder.fetchInfo().exists());
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
  }
View Full Code Here

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
    assertTrue(archiveFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveFolder.getChild(invalid);
    assertTrue(archivedFolder.fetchInfo().exists());
    assertFalse(invalidFolderAtRoot.fetchInfo().exists());
  }

  @Test
  public void testCreateProjectNamedOrionContent() throws CoreException {
View Full Code Here

    String projectName = "Orion Project";
    ProjectInfo projectInfo = new ProjectInfo();
    projectInfo.setFullName(projectName);
    projectInfo.setWorkspaceId(workspaceInfo.getUniqueId());
    IFileStore projectFolder = metaStore.getDefaultContentLocation(projectInfo);
    assertFalse(projectFolder.fetchInfo().exists());
    projectFolder.mkdir(EFS.NONE, null);
    assertTrue(projectFolder.fetchInfo().exists() && projectFolder.fetchInfo().isDirectory());

    // read the project, project json will be created
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectName);
View Full Code Here

    projectInfo.setFullName(projectName);
    projectInfo.setWorkspaceId(workspaceInfo.getUniqueId());
    IFileStore projectFolder = metaStore.getDefaultContentLocation(projectInfo);
    assertFalse(projectFolder.fetchInfo().exists());
    projectFolder.mkdir(EFS.NONE, null);
    assertTrue(projectFolder.fetchInfo().exists() && projectFolder.fetchInfo().isDirectory());

    // read the project, project json will be created
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectName);
    assertNotNull(readProjectInfo);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.