slotDefn.setMultipleCardinality( true ); slotDefn.setDisplayNameID( "Element.ReportDesign.slot.styles" ); slotDefn.setName( "Name" ); slotDefn.setSlotID( 99 );
MetadataTestUtil.setMultipleCardinality( slotDefn, true ); MetadataTestUtil.setDisplayNameKey( slotDefn, "Element.ReportDesign.slot.styles" ); MetadataTestUtil.setName( slotDefn, "Name" ); MetadataTestUtil.setID( slotDefn, 99 );
	public void testGetterAndSetter( ) throws DesignFileException	{		IElementDefn elementDefn = MetaDataDictionary.getInstance( )				.getElement( "ReportDesign" ); //$NON-NLS-1$		assertNotNull( elementDefn );		slotDefn = (SlotDefn) elementDefn.getSlot( 0 );		slotDefn.setMultipleCardinality( true );		slotDefn.setDisplayNameID( "Element.ReportDesign.slot.styles" ); //$NON-NLS-1$		slotDefn.setName( "Name" ); //$NON-NLS-1$		slotDefn.setSlotID( 99 );		assertEquals( true, slotDefn.isMultipleCardinality( ) );		assertEquals( "Styles", slotDefn.getDisplayName( ) ); //$NON-NLS-1$		assertEquals(				"Element.ReportDesign.slot.styles", slotDefn.getDisplayNameID( ) ); //$NON-NLS-1$		assertEquals( "Name", slotDefn.getName( ) ); //$NON-NLS-1$		assertEquals( 99, slotDefn.getSlotID( ) );	}