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
catch ( DesignFileException e )
		{
			List errors = e.getErrorList( );
			assertEquals( 1, errors.size( ) );
			assertEquals(
					DesignParserException.DESIGN_EXCEPTION_UNSUPPORTED_ENCODING,
					( (ErrorDetail) errors.get( 0 ) ).getErrorCode( ) );
		}
		assertNull( designHandle );
	}
	/**
	 * Tests the session properties.
	 * 
	 * @throws Exception
	 */
	public void testSessionProperties( ) throws Exception
	{
		session.setApplicationUnits( DesignChoiceConstants.UNITS_MM );
		assertEquals( DesignChoiceConstants.UNITS_MM, session
				.getApplicationUnits( ) );
		session.setColorFormat( ColorUtil.CSS_RELATIVE_FORMAT );
		assertEquals( ColorUtil.CSS_RELATIVE_FORMAT, session.getColorFormat( ) );
		IResourceLocator testLocator = new IResourceLocator( ) {
			/**
			 * 
			 */
			public URL findResource( ModuleHandle moduleHandle,
					String filename, int type )
			{
				return null;