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/parser/TableItemParseTest.java
assertEquals( "Second table", error.getElement( ).getName( ) ); 
		assertEquals(
				SemanticError.DESIGN_EXCEPTION_INCONSITENT_TABLE_COL_COUNT,
				error.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( "Forth table", error.getElement( ).getName( ) ); 
		assertEquals(
				SemanticError.DESIGN_EXCEPTION_INCONSITENT_TABLE_COL_COUNT,
				error.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( SemanticError.DESIGN_EXCEPTION_OVERLAPPING_CELLS, error
				.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( SemanticError.DESIGN_EXCEPTION_OVERLAPPING_CELLS, error
				.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( "Seventh table", error.getElement( ).getName( ) ); 
		assertEquals(
				ContentException.DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT,
				error.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( "First list", error.getElement( ).getName( ) ); 
		assertEquals( SemanticError.DESIGN_EXCEPTION_MISSING_DATA_SET, error
				.getErrorCode( ) );
		error = ( (ErrorDetail) errors.get( i++ ) );
		assertEquals( "First inner table", error.getElement( ).getName( ) ); 
		assertEquals( SemanticError.DESIGN_EXCEPTION_MISSING_DATA_SET, error
				.getErrorCode( ) );
	}
}