Package org.eclipse.core.filesystem

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


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

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


    // create a invalid metadata folder
    IFileStore rootLocation = OrionConfiguration.getRootLocation();
    String orgFolderName = "te";
    IFileStore orgFolder = rootLocation.getChild(orgFolderName);
    assertTrue(orgFolder.fetchInfo().exists());
    assertTrue(orgFolder.fetchInfo().isDirectory());
    String invalid = "delete.me";
    IFileStore invalidFolderInOrg = orgFolder.getChild(invalid);
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
    invalidFolderInOrg.mkdir(EFS.NONE, null);
View Full Code Here

    // create a invalid metadata folder
    IFileStore rootLocation = OrionConfiguration.getRootLocation();
    String orgFolderName = "te";
    IFileStore orgFolder = rootLocation.getChild(orgFolderName);
    assertTrue(orgFolder.fetchInfo().exists());
    assertTrue(orgFolder.fetchInfo().isDirectory());
    String invalid = "delete.me";
    IFileStore invalidFolderInOrg = orgFolder.getChild(invalid);
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
    invalidFolderInOrg.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderInOrg.fetchInfo().exists());
View Full Code Here

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

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

    assertTrue(orgFolder.fetchInfo().isDirectory());
    String invalid = "delete.me";
    IFileStore invalidFolderInOrg = orgFolder.getChild(invalid);
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
    invalidFolderInOrg.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderInOrg.fetchInfo().exists());
    assertTrue(invalidFolderInOrg.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 invalidFolderInOrg = orgFolder.getChild(invalid);
    assertFalse(invalidFolderInOrg.fetchInfo().exists());
    invalidFolderInOrg.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderInOrg.fetchInfo().exists());
    assertTrue(invalidFolderInOrg.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 archiveOrgFolder = archiveFolder.getChild(orgFolderName);
    assertTrue(archiveOrgFolder.fetchInfo().exists());
    assertTrue(archiveOrgFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveOrgFolder.getChild(invalid);
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 archiveOrgFolder = archiveFolder.getChild(orgFolderName);
    assertTrue(archiveOrgFolder.fetchInfo().exists());
    assertTrue(archiveOrgFolder.fetchInfo().isDirectory());
    IFileStore archivedFolder = archiveOrgFolder.getChild(invalid);
    assertTrue(archivedFolder.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 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());
View Full Code Here

    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
    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());
  }
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.