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
designEngine = new DesignEngine( new DesignConfig( ) );
		session = designEngine.newSessionHandle( (ULocale) null );
		assertEquals( ULocale.getDefault( ), session.getULocale( ) );
		IMetaDataDictionary dic = designEngine.getMetaData( );
		assertFalse( dic.getElements( ).isEmpty( ) );
	}
	/**
	 * Tests the method of getLocale().
	 * 
	 */
	public void testULocale( )
	{
		session = designEngine.newSessionHandle( ULocale.ENGLISH );
		assertEquals( ULocale.ENGLISH, session.getULocale( ) );
		session = designEngine.newSessionHandle( ULocale.KOREA );
		assertEquals( ULocale.KOREA, session.getULocale( ) );
	}
	/**
	 * Create and open one design file, and close them.
	 * 
	 * @throws Exception
	 *             if any exception
	 */
	public void testCreateOpenAndClose( ) throws Exception
	{
		String outputPath = getTempFolder( ) + OUTPUT_FOLDER;
		File outputFolder = new File( outputPath );
		if ( !outputFolder.exists( ) && !outputFolder.mkdir( ) )
		{
			throw new IOException( "Can not create the output folder" );