// a somehwat less straight-forward test: the data model is expected to implicitly increase its column count
// when you add a row which has more columns than currently known
final XMutableGridDataModel dataModel = DefaultGridDataModel.create( m_context );
dataModel.addRow( 0, new Object[] { 1 } );
assertEquals( "unexpected column count after adding the most simple row", 1, dataModel.getColumnCount() );
dataModel.addRow( 1, new Object[] { 1, 2 } );
assertEquals( "implicit extension of the column count doesn't work", 2, dataModel.getColumnCount() );
}
// -----------------------------------------------------------------------------------------------------------------
@Test