*
* @throws Exception for any problem
*/
public void testIsValueSimpleValue() throws Exception
{
SimpleMetaType simpleType = SimpleMetaType.STRING;
MockSimpleValue sv = new MockSimpleValue(simpleType);
MockSimpleValue[][] compData1 = new MockSimpleValue[][]
{
{ sv, null }, { sv, sv }
};
ArrayMetaType compArrayType1 = new ArrayMetaType(2, SimpleMetaType.STRING);
assertTrue("compData1 should be a value of array type", compArrayType1.isValue(compData1));
ArrayMetaType compArrayType2 = new ArrayMetaType(1, SimpleMetaType.STRING);
assertFalse("compData1 should not be a value of array type, wrong dimension", compArrayType2.isValue(compData1));
SimpleMetaType simpleType2 = SimpleMetaType.INTEGER;
ArrayMetaType compArrayType3 = new ArrayMetaType(2, simpleType2);
assertFalse("compData1 should not be a value of array type, wrong element type", compArrayType3.isValue(compData1));
}