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
{
			designHandle = session.openDesign( getResource( INPUT_FOLDER )
					.toString( )
					+ notExistedFileName );
			fail( );
		}
		catch ( DesignFileException e )
		{
			System.out.println( e );
			assertNull( designHandle );
			assertEquals( DesignFileException.DESIGN_EXCEPTION_SYNTAX_ERROR, e
					.getErrorCode( ) );
			assertEquals( 1, e.getErrorList( ).size( ) );
			ErrorDetail error = (ErrorDetail) e.getErrorList( ).get( 0 );
			assertEquals(
					DesignParserException.DESIGN_EXCEPTION_FILE_NOT_FOUND,
					error.getErrorCode( ) );
		}
	}
	/**
	 * Open the design file with wrong tag.
	 */
	public void testOpenWithWrongTag( )
	{
		designHandle = null;
		try
		{
			designHandle = session.openDesign( getResource(
					INPUT_FOLDER + wrongTagFileName ).toString( ) );
			fail( );