designHandle.setFileName( PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER + "NoExistedDesign.xml" );
designHandle.setFileName(  getClassFolder( ) + INPUT_FOLDER + "NoExistedDesign.xml" );
	public void testFindResource( ) throws Exception	{		designHandle.setFileName( null );		designHandle.getModule( ).setSystemId( null );		// uses the file path to find, file exists		String filePath = PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER				+ "ReportDesignHandleTest.xml"; //$NON-NLS-1$		designHandle.getModule( ).setSystemId( null );		designHandle.setFileName( filePath );		URL url = designHandle.findResource( "ReportDesignHandleTest.xml",IResourceLocator.LIBRARY );		assertNotNull( url );		// a file not existed.		url = designHandle.findResource( "NoExistedDesign.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNull( url );		// resources with relative uri file path		designHandle.setFileName( PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER				+ "NoExistedDesign.xml" ); //$NON-NLS-1$		url = designHandle.findResource( "ReportDesignHandleTest.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNotNull( url );		url = designHandle.findResource( "NoExistedDesign.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNull( url );		// resources with HTTP protocols.		designHandle.getModule( ).setSystemId(				new URL( "http://www.eclipse.org/" ) ); //$NON-NLS-1$		url = designHandle.findResource( "images/EclipseBannerPic.jpg", //$NON-NLS-1$				IResourceLocator.IMAGE );		assertEquals( "http://www.eclipse.org/images/EclipseBannerPic.jpg", //$NON-NLS-1$				url.toString( ) ); //$NON-NLS-1$		// resources with HTTP protocols.		url = designHandle.findResource( "/NoExistedDesign.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNotNull( url );		// resources with both system id and path.		File f = new File( filePath ).getParentFile( );		designHandle.getModule( ).setSystemId( f.toURL( ) );		url = designHandle.findResource( "ReportDesignHandleTest.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNotNull( url );		url = designHandle.findResource( "NoExistedDesign.xml", //$NON-NLS-1$				IResourceLocator.LIBRARY );		assertNull( url );	}