/*******************************************************************************
 * 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.engine;

import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.eclipse.birt.report.tests.engine.smoke.sampleReport.SampleReportTest;

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

/**
 * All test cases for tests Engine
 */
public class AllTests extends utility.BaseTestCase
{
	public static void main( String[] args )
	{
		Test t = AllTests.suite( );
		System.out.println( t );
	}
	
	public static Test suite( )
	{
		TestSuite suite = new TestSuite( "Test for org.eclipse.birt.report.tests.engine" ); //$NON-NLS-1$

		List classes = new ArrayList( );
		AllTests allTests = new AllTests( );

		classes.addAll( allTests.getClasses( "org.eclipse.birt.report.tests.engine.api" ) ); //$NON-NLS-1$
		classes.addAll( allTests.getClasses( "org.eclipse.birt.report.tests.engine.regression" ) ); //$NON-NLS-1$
		classes.add( "org.eclipse.birt.report.tests.engine.smoke.sampleReport.SampleReportTest" ); //$NON-NLS-1$
		classes.remove( org.eclipse.birt.report.tests.engine.api.EngineResourceLocator.class  );
		classes.remove( org.eclipse.birt.report.tests.engine.api.TestRenderOptionBase.class);
		Iterator iter = classes.iterator( );
		while ( iter.hasNext( ) )
		{
			String next = ( String ) iter.next( );
			
			try
			{
				Class c = Class.forName( next );
				int modifier = c.getModifiers( );
				if ( Modifier.isPublic( modifier ) && !Modifier.isStatic( modifier ) )
				{
					suite.addTestSuite( c );
				}
			}
			catch ( ClassNotFoundException e )
			{
				assert false;
			}
		}

		return suite;
	}
}
@@ -919,16 +919,17 @@
 tCase%0A%7B%0A
+%0A
 %09public 
@@ -1025,17 +1025,16 @@
 t );%0A%09%7D%0A
-%09
 %0A%09public
@@ -1092,17 +1092,21 @@
 stSuite(
- 
+%0A%09%09%09%09
 %22Test fo
@@ -1256,32 +1256,37 @@
 addAll( allTests
+%0A%09%09%09%09
 .getClasses( %22or
@@ -1345,32 +1345,37 @@
 NLS-1$%0A%09%09classes
+%0A%09%09%09%09
 .addAll( allTest
@@ -1375,16 +1375,23 @@
 allTests
+%0A%09%09%09%09%09%09
 .getClas
@@ -1469,24 +1469,29 @@
 1$%0A%09%09classes
+%0A%09%09%09%09
 .add( %22org.e
@@ -1577,32 +1577,37 @@
 NLS-1$%0A%09%09classes
+%0A%09%09%09%09
 .remove( org.ecl
@@ -1591,32 +1591,33 @@
 es%0A%09%09%09%09.remove( 
+%22
 org.eclipse.birt
@@ -1666,15 +1666,9 @@
 ator
-.class 
+%22
  );%0A
@@ -1676,16 +1676,21 @@
 %09classes
+%0A%09%09%09%09
 .remove(
@@ -1690,16 +1690,17 @@
 remove( 
+%22
 org.ecli
@@ -1756,14 +1756,10 @@
 Base
-.class
+%22 
 );%0A%09
@@ -1850,16 +1850,14 @@
  = (
- 
 String
- 
 ) it
@@ -1868,19 +1868,16 @@
 ext( );%0A
-%09%09%09
 %0A%09%09%09try%0A
@@ -1994,17 +1994,23 @@
 difier )
- 
+%0A%09%09%09%09%09%09
 && !Modi

Update golden file according to engine code change. Update AllTests.java to remove two cases out which are not test java classes