/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.tests.model.regression;

import org.eclipse.birt.report.model.api.DesignFileException;
import org.eclipse.birt.report.model.api.ElementFactory;
import org.eclipse.birt.report.model.api.TableGroupHandle;
import org.eclipse.birt.report.model.api.TableHandle;
import org.eclipse.birt.report.model.api.command.ContentException;
import org.eclipse.birt.report.model.api.command.NameException;
import org.eclipse.birt.report.tests.model.BaseTestCase;

/**
 * Regression description:
 * </p>
 * No exception for two group element with the same names
 * </p>
 * Test description:
 * <p>
 * Add two groups with the same name to the table, NameException should be thrown out
 * </p>
 */

public class Regression_73182 extends BaseTestCase
{

	private final static String INPUT = "Reg_73182.xml"; //$NON-NLS-1$


	/**
	 * @throws DesignFileException
	 * @throws ContentException
	 * @throws NameException
	 */
	public void test_73182( ) throws DesignFileException, ContentException, NameException 
	{
		openDesign( INPUT );

		TableHandle table = (TableHandle) designHandle.findElement( "table" ); //$NON-NLS-1$
		ElementFactory factory = designHandle.getElementFactory( );
		TableGroupHandle group1 = factory.newTableGroup( );
		group1.setName( "group1" ); //$NON-NLS-1$
		TableGroupHandle group2 = factory.newTableGroup( );
		table.getGroups( ).add( group1 );
		table.getGroups( ).add( group2 );
		try
		{
			group2.setName( "group1" ); //$NON-NLS-1$
			table.getGroups( ).add( group2 );
			fail( );
		}
		catch ( NameException e )
		{
			assertNotNull( e );
		}
	}
}

@@ -585,70 +585,8 @@
 n;%0A%0A
-import org.eclipse.birt.report.model.api.DesignFileException;%0A
 impo
@@ -755,75 +755,8 @@
 le;%0A
-import org.eclipse.birt.report.model.api.command.ContentException;%0A
 impo
@@ -1200,16 +1200,23 @@
 T = %22Reg
+ression
 _73182.x
@@ -1234,18 +1234,16 @@
 -NLS-1$%0A
-%0A%0A
 %09/**%0A%09 *
@@ -1255,175 +1255,66 @@
 ows 
-DesignFileException%0A%09 * @throws ContentException%0A%09 * @throws NameException%0A%09 */%0A%09public void test_73182( ) throws DesignFileException, ContentException, NameException 
+Exception%0A%09 */%0A%09public void test_73182( ) throws Exception
 %0A%09%7B%0A

update the test case