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

import junit.framework.Test;
import junit.framework.TestSuite;

import org.eclipse.birt.report.model.api.DesignFileException;
import org.eclipse.birt.report.tests.model.BaseTestCase;


public class CompatibilityTest extends BaseTestCase{

	String fileName = "DynamicTextExampleAfter.xml";
	String fileName1 = "DynamicTextExampleBefore.xml";
	String fileName2 = "GroupingExampleAfter.xml";
	String fileName3 = "GroupingExampleBefore.xml";
	String fileName4 = "HighlightExampleAfter.xml";
	String fileName5 = "HighlightExampleBefore.xml";
	String fileName6 = "HyperlinkingExampleBefore.xml";
	String fileName7 = "ImageExample.xml";
	String fileName8 = "ListingExampleAfter.xml";
	String fileName9 = "ListingExampleBefore.xml";
	String fileName10 = "MappingExampleAfter.xml";
	String fileName11 = "MappingExampleBefore.xml";
	String fileName12 = "ParallelReportExampleAfter.xml";
	String fileName13= "ParametersExampleAfter.xml";
	String fileName14= "ParametersExampleBefore.xml";
	String fileName15= "ProductCatalog.xml";
	String fileName16= "SalesInvoice.xml";
	String fileName17= "SalesOfAproduct.xml";
	String fileName18= "SubReportsExampleMainAfter.xml";
	String fileName19= "SubReportsExampleMainBefore.xml";
	String fileName20= "TopNPercent.xml";
	String fileName21= "TopSellingProducts.xml";
	
	public CompatibilityTest(String name) {
		super(name);
		// TODO Auto-generated constructor stub
	}
    public static Test suite(){
		
		return new TestSuite(CompatibilityTest.class);
	}
	
	protected void setUp( ) throws Exception
	{
		super.setUp( );
		
	}
	
	public void testOpenFile( ) throws DesignFileException
	{
		openDesign(fileName);
		openDesign(fileName1);
		openDesign(fileName2);
		openDesign(fileName3);
		openDesign(fileName4);
		openDesign(fileName5);
		openDesign(fileName6);
		openDesign(fileName7);
		openDesign(fileName8);
		openDesign(fileName9);
		openDesign(fileName10);
		openDesign(fileName11);
		openDesign(fileName12);
		openDesign(fileName13);
		openDesign(fileName14);
		openDesign(fileName15);
		openDesign(fileName16);
		openDesign(fileName17);
		openDesign(fileName18);
		openDesign(fileName19);
		openDesign(fileName20);
		openDesign(fileName21);
	}

}

@@ -327,32 +327,38 @@
 TextExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -385,32 +385,38 @@
 extExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -439,32 +439,38 @@
 pingExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -494,32 +494,38 @@
 ingExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -549,32 +549,38 @@
 ightExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -605,32 +605,38 @@
 ghtExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -664,32 +664,38 @@
 ingExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -718,16 +718,22 @@
 eExample
+_2.0.1
 .xml%22;%0A%09
@@ -763,32 +763,38 @@
 tingExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -817,32 +817,38 @@
 ingExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -871,32 +871,38 @@
 pingExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -926,32 +926,38 @@
 ingExampleBefore
+_2.0.1
 .xml%22;%0A%09String f
@@ -987,32 +987,38 @@
 portExampleAfter
+_2.0.1
 .xml%22;%0A%09String f
@@ -1047,24 +1047,30 @@
 ExampleAfter
+_2.0.1
 .xml%22;%0A%09Stri
@@ -1104,24 +1104,30 @@
 xampleBefore
+_2.0.1
 .xml%22;%0A%09Stri
@@ -1156,16 +1156,22 @@
 tCatalog
+_2.0.1
 .xml%22;%0A%09
@@ -1202,16 +1202,22 @@
 sInvoice
+_2.0.1
 .xml%22;%0A%09
@@ -1251,16 +1251,22 @@
 Aproduct
+_2.0.1
 .xml%22;%0A%09
@@ -1311,16 +1311,22 @@
 ainAfter
+_2.0.1
 .xml%22;%0A%09
@@ -1372,16 +1372,22 @@
 inBefore
+_2.0.1
 .xml%22;%0A%09
@@ -1417,16 +1417,22 @@
 NPercent
+_2.0.1
 .xml%22;%0A%09
@@ -1469,16 +1469,22 @@
 Products
+_2.0.1
 .xml%22;%0A%09

Add input files for compatibility test