*
* @throws Exception for any problem
*/
public void testToString() throws Exception
{
CompositeMetaType rowType = initRowType();
TableMetaType tableType = initTableMetaType();
String toString = tableType.toString();
assertTrue("toString() should contain the tabular type class name", toString.indexOf(TableMetaType.class.getSimpleName()) != -1);
assertTrue("toString() should contain the type name", toString.indexOf("typeName") != -1);
assertTrue("toString() should contain the row type " + rowType, toString.indexOf(rowType.toString()) != -1);
assertTrue("toString() should contain the index name1", toString.indexOf("name1") != -1);
assertTrue("toString() should contain the index name2", toString.indexOf("name2") != -1);
}