Bug 176798 Errors occur in JUnit test of org.eclipse.birt.data in daily build 20070309
Errors occur in JUnit test of org.eclipse.birt.data in daily build 20070309. Please see the attachment for details
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/CacheUtil.java
while ( file.exists( ) || !file.mkdir( ) )
			{
				i++;
				sessionTempDirStr = sessionTempDirStr + "_" + i;
				file = new File( sessionTempDirStr );
			}	
		}
		return sessionTempDirStr;
	}
		
	/**
	 * @param rsMeta
	 * @return
	 */
	public static SortSpec getSortSpec( IResultClass rsMeta )
	{
		int fieldCount = rsMeta.getFieldCount( );
		int[] sortKeyIndexs = new int[fieldCount];
		String[] sortKeyNames = new String[fieldCount];
		boolean[] ascending = new boolean[fieldCount];
		for ( int i = 0; i < fieldCount; i++ )
		{
			sortKeyIndexs[i] = i + 1; 
			ascending[i] = true;
		}
		return new SortSpec( sortKeyIndexs, sortKeyNames, ascending );
	}
	
}