MetaDataDictionary.reset( );  MetaDataReader.read( ClassDefnTest.class
loadMetaData( ClassDefnTest.class
	public void testParseRomDef( ) throws MetaDataParserException	{		MetaDataDictionary.reset( );		MetaDataReader.read( ClassDefnTest.class				.getResourceAsStream( "input/ClassDefnTest.def" ) ); //$NON-NLS-1$		MetaDataDictionary dd = MetaDataDictionary.getInstance( );		IClassInfo classDefn = dd.getClass( "MyClass" ); //$NON-NLS-1$		assertNotNull( classDefn );		assertEquals( "MyClass", classDefn.getName( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass", classDefn.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.toolTip", classDefn.getToolTipKey( ) ); //$NON-NLS-1$		assertTrue( classDefn.isNative( ) );		IMethodInfo constructor = classDefn.getConstructor( );		assertNotNull( constructor );		assertEquals( "MyConstructor", constructor.getName( ) ); //$NON-NLS-1$		assertEquals(				"Class.MyClass.Constructor", constructor.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals(				"Class.MyClass.Constructor.toolTip", constructor.getToolTipKey( ) ); //$NON-NLS-1$		Iterator iter = constructor.argumentListIterator( );		ArgumentInfoList arg1 = (ArgumentInfoList) iter.next( );		iter = arg1.argumentsIterator( );		ArgumentInfo arg = (ArgumentInfo) iter.next( );		assertNotNull( arg );		assertFalse( iter.hasNext( ) );		assertEquals( "pos", arg.getName( ) ); //$NON-NLS-1$		assertEquals( "Number", arg.getType( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.Constructor.pos", arg.getDisplayNameKey( ) ); //$NON-NLS-1$		List members = classDefn.getMembers( );		assertEquals( 2, members.size( ) );		MemberInfo member = (MemberInfo) members.get( 0 );		assertEquals( "columnName", member.getName( ) ); //$NON-NLS-1$		assertEquals( "String", member.getDataType( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.columnName", member.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals(				"Class.MyClass.columnName.toolTip", member.getToolTipKey( ) ); //$NON-NLS-1$		member = (MemberInfo) members.get( 1 );		assertEquals( "columnType", member.getName( ) ); //$NON-NLS-1$		assertEquals( "String", member.getDataType( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.columnType", member.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals(				"Class.MyClass.columnType.toolTip", member.getToolTipKey( ) ); //$NON-NLS-1$		List methods = classDefn.getMethods( );		assertEquals( 2, methods.size( ) );		MethodInfo method = (MethodInfo) methods.get( 0 );		assertEquals( "getColumnName", method.getName( ) ); //$NON-NLS-1$		assertEquals( "String", method.getReturnType( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.getColumnName", method.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals(				"Class.MyClass.getColumnName.toolTip", method.getToolTipKey( ) ); //$NON-NLS-1$		assertFalse( method.isStatic( ) );		method = (MethodInfo) methods.get( 1 );		assertEquals( "addColumn", method.getName( ) ); //$NON-NLS-1$		assertEquals( null, method.getReturnType( ) ); 		assertEquals( "Class.MyClass.addColumn", method.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass.addColumn.toolTip", method.getToolTipKey( ) ); //$NON-NLS-1$		assertTrue( method.isStatic( ) );		iter = method.argumentListIterator( );		iter = ( (ArgumentInfoList) iter.next( ) ).argumentsIterator( );		assertTrue( iter.hasNext( ) );		assertTrue( iter.hasNext( ) );		classDefn = dd.getClass( "MyClass1" ); //$NON-NLS-1$		assertNotNull( classDefn );		assertEquals( "MyClass1", classDefn.getName( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass1", classDefn.getDisplayNameKey( ) ); //$NON-NLS-1$		assertEquals( "Class.MyClass1.toolTip", classDefn.getToolTipKey( ) ); //$NON-NLS-1$		assertFalse( classDefn.isNative( ) );	}