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
assertEquals(
				DesignParserException.DESIGN_EXCEPTION_UNDEFINED_PROPERTY,
				error.getErrorCode( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		assertEquals( 1, getDesignCount( ) );
		designHandle.getModule( ).close( );
		assertFalse( designHandle.getModule( ).isValid( ) );
		assertEquals( 0, getDesignCount( ) );
		designHandle = null;
	}
	/**
	 * Tests to read a design file with byte order mark (BOM) in a windows
	 * compatible UTF file.
	 * 
	 * @throws Exception
	 *             if errors occur during opening the design file.
	 */
	public void testOpenWithBOM( ) throws Exception
	{
		designHandle = null;
		designHandle = session.openDesign( getResource(
				INPUT_FOLDER + UTF8BOMFileName ).toString( ) );
		assertNotNull( designHandle );
		designHandle = null;
		try
		{
			designHandle = session
					.openDesign( getResource(
							INPUT_FOLDER + "SessionHandleTest_INVALIDBOM.xml" ).toString( ) ); 
		}