Bug 211545 org.eclipse.birt.report.tests.engine has compile error in 2.3 daily build 20071130.
org.eclipse.birt.report.tests.engine has compile error in 2.3 daily build 20071130. The error message is below: [javac] ---------- [javac] 7. ERROR in /home/adb/releng.230/src/plugins/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataExtractionTaskTest.java (at line 313) [javac] assertEquals( 112, data.getValue( "number" ) ); [javac] ^^^^^^^^^^^^ [javac] The method assertEquals(Object, Object) in the type Assert is not applicable for the arguments (int, Object) [javac] ---------- The JDK used in daily build is 1.4
testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataExtractionTaskTest.java
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.birt.core.archive.FileArchiveWriter;
import org.eclipse.birt.core.archive.IDocArchiveWriter;
import org.eclipse.birt.data.engine.api.IFilterDefinition;
import org.eclipse.birt.data.engine.api.querydefn.ConditionalExpression;
import org.eclipse.birt.data.engine.api.querydefn.FilterDefinition;
import org.eclipse.birt.report.engine.api.EngineException;
import org.eclipse.birt.report.engine.api.HTMLRenderOption;
import org.eclipse.birt.report.engine.api.IDataExtractionTask;
import org.eclipse.birt.report.engine.api.IDataIterator;
import org.eclipse.birt.report.engine.api.IExtractionResults;
import org.eclipse.birt.report.engine.api.IRenderOption;
import org.eclipse.birt.report.engine.api.IRenderTask;
import org.eclipse.birt.report.engine.api.IReportDocument;
import org.eclipse.birt.report.engine.api.IReportEngine;
import org.eclipse.birt.report.engine.api.IReportRunnable;
import org.eclipse.birt.report.engine.api.IRunTask;
import org.eclipse.birt.report.engine.api.InstanceID;
import org.eclipse.birt.report.tests.engine.EngineCase;
/**
 * <b>DataExtractionTask test</b>
 * <p>
 * This case tests extracting data with filter rule from report through
 * IDataExtractionTask interface.
 */
public class DataExtractionTaskTest extends EngineCase
{