Bug 180089 BIRT model - TOC predefined styles
In ROM we need to support predefined styles for TOC too. This will allow user to easily create a TOC style, by creating one of two styles. Suggestion i have is - TOC ( Applies to all TOC nodes ) - TOC-level1 ( If defined applies to first level toc nodes ) - TOC-level2 ........... - TOC-level5
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportDesignHandleTest.java
public void testFindResource( ) throws Exception
	{
		designHandle.setFileName( null );
		designHandle.getModule( ).setSystemId( null );
		
		URL filePath = getResource( INPUT_FOLDER + "ReportDesignHandleTest.xml" ); 
		designHandle.setFileName( filePath.toString( ) );
		URL url = designHandle.findResource( "ReportDesignHandleTest.xml", 
				IResourceLocator.LIBRARY );
		assertNotNull( url );
		
		url = designHandle.findResource( "NoExistedDesign.xml", 
				IResourceLocator.LIBRARY );
		assertNull( url );
		
		designHandle.setFileName( getResource( INPUT_FOLDER ).toString( )
				+ "NoExistedDesign.xml" ); 
		url = designHandle.findResource( "ReportDesignHandleTest.xml", 
				IResourceLocator.LIBRARY );
		assertNotNull( url );
		url = designHandle.findResource( "NoExistedDesign.xml", 
				IResourceLocator.LIBRARY );
		assertNull( url );
		
		designHandle.getModule( ).setSystemId(
				new URL( "http:www.eclipse.org/" ) ); 
		url = designHandle.findResource( "images/EclipseBannerPic.jpg", 
				IResourceLocator.IMAGE );
		assertEquals( "http:www.eclipse.org/images/EclipseBannerPic.jpg", 
				url.toString( ) );