Code example for ZipEntry

Methods: getName, isDirectory

0
		assertTrue(ze.getName(),FileHelper.entryIsHidden(ze));
		 
		ze = new ZipEntry(".hidden_dir/");
		assertTrue(ze.getName(),FileHelper.entryIsHidden(ze));
 
		ze = new ZipEntry("SOME_MACOSX_BUNDLE/");
		assertTrue(ze.isDirectory());
		 
		assertTrue(ze.getName(),FileHelper.entryIsHidden(ze));
		 
		ze = new ZipEntry("Another_MacOSX_Bundle/");
		assertTrue(ze.getName(),FileHelper.entryIsHidden(ze));
		 
		ze = new ZipEntry("NOT_MACOSX_BUNDLE");
		assertFalse(ze.getName(),FileHelper.entryIsHidden(ze));
		 
		ze = new ZipEntry("unhidden_thing");
		assertFalse(ze.getName(),FileHelper.entryIsHidden(ze));
 
		ze = new ZipEntry("unhidden_dir/");
		assertFalse(ze.getName(),FileHelper.entryIsHidden(ze));