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
.openDesign(
						getResource( INPUT_FOLDER + "SessionHandleTest_11.xml" ).toString( ), options ); 
		assertEquals( 1, designHandle.getModule( ).getAllErrors( ).size( ) );
		assertEquals( 1, designHandle
				.getLibrary( "lib" ).getModule( ).getAllErrors( ).size( ) ); 
	}
	/**
	 * Test getDefaultTOCStyle method.
	 * 
	 * @throws Exception
	 */
	public void testGetDefaultTOCStyle( ) throws Exception
	{
		StyleHandle styleHandle = session.getDefaultTOCStyle( "Heading 0" );
		assertNotNull( styleHandle );
		
		DimensionHandle dimension = styleHandle.getFontSize( );
		assertNotNull( dimension );
		assertEquals( "xx-large" , dimension.getValue( ) ); 
		
		try{
			styleHandle.setCanShrink( false );
			fail();
			
		}catch( IllegalOperationException e)
		{
			assertEquals( ReadOnlyActivityStack.MESSAGE , e.getMessage( ) );
		}
	}
}