use of org.pentaho.platform.plugin.services.importexport.exportManifest.ExportManifestEntity in project pentaho-platform by pentaho.
the class ImportSessionTest method fileHiddenPropertyIsDefinedWhenAclIsEnabled.
@Test
public void fileHiddenPropertyIsDefinedWhenAclIsEnabled() {
importSession.setAclProperties(true, false, false);
RepositoryFile virtualFile = mock(RepositoryFile.class);
when(virtualFile.isHidden()).thenReturn(Boolean.TRUE);
ExportManifestEntity fake = mock(ExportManifestEntity.class);
when(fake.getRepositoryFile()).thenReturn(virtualFile);
ExportManifest manifest = mock(ExportManifest.class);
when(manifest.getExportManifestEntity(PATH)).thenReturn(fake);
importSession.setManifest(manifest);
assertEquals(virtualFile.isHidden(), importSession.isFileHidden(PATH));
}
Aggregations