test/java/fr/jayasoft/ivy/repository/vfs/VfsResourceTest.java
/**
	 * Validate that we don't get any results if we ask an IMAGINARY VFSResource - a
	 * nonexistent file - for a list of its children
	 *
	 */
Validate that we don't get any results if we ask an IMAGINARY VFSResource - a
nonexistent file - for a list of its children
Validate that we don ' t get any results if we ask an IMAGINARY VFSResource - a nonexistent file - for a list of its children
public void testListImaginary() throws Exception {
		Iterator testSet = helper.createVFSUriSet("idontexistzzxx").iterator();
		while (testSet.hasNext()) {
			VfsURI vfsURI = (VfsURI) testSet.next();
			VfsResource res = new VfsResource(vfsURI.toString(), helper.fsManager);
			List results = res.getChildren();
			if (results.size() > 0) {
				fail("getChildren query on file provided results when it shouldn't have");
			}
		}		
	}
public void testListImaginary ( ) throws Exception { Iterator testSet = helper . createVFSUriSet ( "idontexistzzxx" ) . iterator ( ) ; while ( testSet . hasNext ( ) ) { VfsURI vfsURI = ( VfsURI ) testSet . next ( ) ; VfsResource res = new VfsResource ( vfsURI . toString ( ) , helper . fsManager ) ; List results = res . getChildren ( ) ; if ( results . size ( ) > 0 ) { fail ( "getChildren query on file provided results when it shouldn't have" ) ; } } }
Validate that we don't get any results if we ask an IMAGINARY VFSResource - a
 nonexistent file - for a list of its children
Validate that we don ' t get any results if we ask an IMAGINARY VFSResource - a nonexistent file - for a list of its children