Bug 162167 Add API IResultIterator.isEmpty to Data Engine.
Current DTE api do not have a method that can be directly used to tell the client whether an IResultIterator is empty or not.We need to add this api for the convenience sake.
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/RowDataTest.java
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.api.IBaseExpression;
import org.eclipse.birt.data.engine.api.IQueryResults;
import org.eclipse.birt.data.engine.api.IResultIterator;
import org.eclipse.birt.data.engine.api.IResultMetaData;
import org.eclipse.birt.report.engine.api.DataSetID;
import org.eclipse.birt.report.engine.data.IResultSet;
import org.eclipse.birt.report.engine.script.internal.RowData;
import org.mozilla.javascript.Scriptable;
/**
 * JUnit test for the RowData class
 * 
 */
public class RowDataTest extends TestCase
{
	private Map testExpressions;
	private IRowData rowData;
	protected void setUp( )
	{
		testExpressions = new HashMap( );
		testExpressions.put( "row[9999]" , "1" );
		testExpressions.put( "row[\"test\"]" , "2" );
		testExpressions.put( "test" , "3" );
		testExpressions.put( "row[\"test1\"]" , "4" );