ElementFactory factory = new ElementFactory(designHandle.getModule()); TableGroupHandle tablegroup = factory.newTableGroup(); assertFalse(tablegroup.hideDetail());
	public void testProperties( ) throws Exception	{		openDesign( "GroupHandleTest.xml" ); //$NON-NLS-1$		ListHandle list = (ListHandle) designHandle.findElement( "My List" ); //$NON-NLS-1$		assertNotNull( list );		// group slot		SlotHandle groupSlot = list.getGroups( );		GroupHandle group = (GroupHandle) groupSlot.get( 0 );		group.setName( "group1" ); //$NON-NLS-1$		assertEquals( "group1", group //$NON-NLS-1$				.getDisplayLabel( DesignElement.FULL_LABEL ) );                assertEquals( "2004/12/12", group.getGroupStart() ); //$NON-NLS-1$                group.setName( "  " );   //$NON-NLS-1$        assertEquals( null, group //$NON-NLS-1$                .getDisplayLabel( DesignElement.USER_LABEL ) );                group.setName( "" );   //$NON-NLS-1$        assertEquals( null, group //$NON-NLS-1$                .getDisplayLabel( DesignElement.USER_LABEL ) );        		// group filter		group.setInterval( DesignChoiceConstants.INTERVAL_PREFIX );		assertEquals( DesignChoiceConstants.INTERVAL_PREFIX, group				.getInterval( ) );		group.setIntervalRange( 0.1234 );		assertTrue( 0.1234 == group.getIntervalRange( ) );		group.setKeyExpr( "new key expression" ); //$NON-NLS-1$		assertEquals( "new key expression", group.getKeyExpr( ) ); //$NON-NLS-1$		group.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_DESC );		assertEquals( DesignChoiceConstants.SORT_DIRECTION_DESC, group				.getSortDirection( ) );		//group.setOnCreate( "new create on the group" ); //$NON-NLS-1$		group.setOnPrepare( "new prepare on the group" ); //$NON-NLS-1$		//group.setOnRender( "new render on the group" ); //$NON-NLS-1$		//assertEquals( "new create on the group", group.getOnCreate( ) ); //$NON-NLS-1$		assertEquals( "new prepare on the group", group.getOnPrepare( ) ); //$NON-NLS-1$		//assertEquals( "new render on the group", group.getOnRender( ) ); //$NON-NLS-1$	}