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/SessionHandleTest.java
* @throws Exception
	 */
	public void testOpenWithStream( ) throws Exception
	{
		
		openDesign( fileName );
		URL url = getResource( INPUT_FOLDER + fileName );
		URL parentUrl = getResource( INPUT_FOLDER );
		assertEquals( parentUrl.toString( ), designHandle.getSystemId( )
				.toExternalForm( ) );
		
		url = getResource( INPUT_FOLDER + streamFileName );
		InputStream is = url.openStream( );
		designHandle = session.openDesign( parentUrl, is );
		is.close( );
		design = (ReportDesign) designHandle.getModule( );
		assertNull( design.getFileName( ) );
		testSystemIdAndFileName( designHandle, url, parentUrl );
		
		openDesign( streamFileName );
		url = getResource( INPUT_FOLDER + streamFileName );
		is = url.openStream( );
		testSystemIdAndFileName( designHandle, url, parentUrl );
		
		
		openDesign( url.toExternalForm( ), is );
		assertEquals( url.toExternalForm( ), design.getFileName( ) );
		testSystemIdAndFileName( designHandle, url, parentUrl );
		is.close( );
	}