@@ -0,0 +1,2209 @@
+/*******************************************************************************%0A * Copyright (c) 2004 Actuate Corporation. All rights reserved. This program and%0A * the accompanying materials are made available under the terms of the Eclipse%0A * Public License v1.0 which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html Contributors: Actuate Corporation -%0A * initial API and implementation%0A ******************************************************************************/%0A%0Apackage org.eclipse.birt.report.tests.model.regression;%0A%0Aimport java.util.List;%0A%0Aimport org.eclipse.birt.report.model.api.DesignFileException;%0Aimport org.eclipse.birt.report.model.api.ScriptDataSetHandle;%0Aimport org.eclipse.birt.report.tests.model.BaseTestCase;%0A%0A/**%0A * %3Cb%3ERegression description:%3C/b%3E%0A * %3Cp%3E%0A * BIRT 2.0 Scripted Data Set converted incorrectly in 2.1%0A * %3Cp%3E%0A * First attachment in this file is a report design created in 2.0.1, which%0A * defines a Scripted Data Set. Open the design in 2.1RC5, the BIRT designer%0A * converts the design to 2.1 format. (Attachment 2 %5Bedit%5D is the converted%0A * design file). However visual inspection of the XML source reveals that the%0A * data set definition contains both a %22resultSet%22 structure and an identical%0A * %22resultSetHints%22 structure. The %22resultSet%22 structure here is wrong - it%0A * should have been removed during the conversion.%0A * %3Cp%3E%0A * As it stands the extranueous %22resultSet%22 does not stop the data set from%0A * working so this is not a critical issue. But it should be removed.%0A * %3Cp%3E%0A * %3Cb%3ETest description:%3C/b%3E%0A * %3Cp%3E%0A * Open the 2.1 report, make sure that the resultSet list property is removed%0A * after convertion.%0A * %3Cp%3E%0A */%0Apublic class Regression_148548 extends BaseTestCase%0A%7B%0A%0A%09private final static String REPORT = %22ScriptTest2.0.1.rptdesign%22; //$NON-NLS-1$%0A%0A%09/**%0A%09 * @throws DesignFileException%0A%09 */%0A%0A%09public void test_regression_148548( ) throws DesignFileException%0A%09%7B%0A%09%09openDesign( REPORT );%0A%09%09ScriptDataSetHandle ds = (ScriptDataSetHandle) designHandle%0A%09%09%09%09.findDataSet( %22Data Set%22 ); //$NON-NLS-1$%0A%09%09List resultSets = ds%0A%09%09%09%09.getListProperty( ScriptDataSetHandle.RESULT_SET_PROP );%0A%0A%09%09assertNull( resultSets );%0A%09%7D%0A%7D%0A

Add one regression test case