[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-169) ArchiveFileSystem.isDirectory returns true if ArchivePath doesn't exist
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Wed May 12 10:05:26 EDT 2010
[ https://jira.jboss.org/jira/browse/SHRINKWRAP-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lee Rubinger resolved SHRINKWRAP-169.
--------------------------------------------
Resolution: Done
> ArchiveFileSystem.isDirectory returns true if ArchivePath doesn't exist
> -----------------------------------------------------------------------
>
> Key: SHRINKWRAP-169
> URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-169
> Project: ShrinkWrap
> Issue Type: Bug
> Components: ext-vfs3
> Reporter: Andrew Lee Rubinger
> Assignee: Andrew Lee Rubinger
> Fix For: 1.0.0-alpha-10
>
>
> This test shows the failing case:
> /**
> * Ensures that {@link VirtualFile#isDirectory()} returns false for files
> * that do not exist
> */
> @Test
> public void nonExistentFilesAreNotDirectory() throws Exception
> {
> // Create and mount an archive
> final JavaArchive archive = ShrinkWrap.create(NAME_ARCHIVE, JavaArchive.class);
> final VirtualFile virtualFile = this.createAndMountArchive(archive);
> // Control
> final VirtualFile doesNotExistFile = virtualFile.getChild("doesnotexist");
> Assert
> .assertFalse("Test should indicate that this file does not exist (control test)", doesNotExistFile.exists());
> // Ensure file that doesn't exist does not report as directory
> Assert.assertFalse("File that doesn't exist should not report as a directory", doesNotExistFile.isDirectory());
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list