MetaDataDictionary.reset( ); ThreadResources.setLocale( ULocale.ENGLISH ); MetaDataReader .read( ReportDesign.class.getResourceAsStream( "rom.def" ) );
	public void testSemanticValidator( ) throws MetaDataParserException	{		MetaDataDictionary.reset( );		ThreadResources.setLocale( ULocale.ENGLISH );		MetaDataReader				.read( ReportDesign.class.getResourceAsStream( "rom.def" ) ); //$NON-NLS-1$		IElementDefn masterPageDefn = MetaDataDictionary.getInstance( )				.getElement( ReportDesignConstants.MASTER_PAGE_ELEMENT );		PropertyDefn typeDefn = (PropertyDefn) masterPageDefn				.getProperty( MasterPage.TYPE_PROP );		List validators = typeDefn.getTriggerDefnSet( ).getTriggerList( );		assertTrue( hasValidator( validators, "MasterPageSizeValidator" ) ); //$NON-NLS-1$		assertTrue( hasValidator( validators, "MasterPageTypeValidator" ) ); //$NON-NLS-1$		assertTrue( hasValidator( validators, "MasterPageMultiColumnValidator" ) ); //$NON-NLS-1$	}