test/java/fr/jayasoft/ivy/repository/vfs/VfsRepositoryTest.java
/**
	 * Validate that we get a non null Resource instance when
	 * passed a well-formed VfsURI pointing to an existing file
	 *
	 */
Validate that we get a non null Resource instance when
passed a well-formed VfsURI pointing to an existing file
Validate that we get a non null Resource instance when passed a well - formed VfsURI pointing to an existing file
public void testGetResourceValidExist() throws Exception {
		String testResource = VfsTestHelper.TEST_IVY_XML;
		Iterator vfsURIs = helper.createVFSUriSet(testResource).iterator();
		while (vfsURIs.hasNext()) {
			VfsURI vfsURI = (VfsURI) vfsURIs.next();
			try {				
				assertNotNull(repo.getResource(vfsURI.toString()));
			} catch (IOException e) {
				fail("Unexpected IOError on fetch of valid resource");
				e.printStackTrace();
			}
		}
	}
public void testGetResourceValidExist ( ) throws Exception { String testResource = VfsTestHelper . TEST_IVY_XML ; Iterator vfsURIs = helper . createVFSUriSet ( testResource ) . iterator ( ) ; while ( vfsURIs . hasNext ( ) ) { VfsURI vfsURI = ( VfsURI ) vfsURIs . next ( ) ; try { assertNotNull ( repo . getResource ( vfsURI . toString ( ) ) ) ; } catch ( IOException e ) { fail ( "Unexpected IOError on fetch of valid resource" ) ; e . printStackTrace ( ) ; } } }
Validate that we get a non null Resource instance when
 passed a well-formed VfsURI pointing to an existing file
Validate that we get a non null Resource instance when passed a well - formed VfsURI pointing to an existing file