Author: shawkins
Date: 2009-08-30 22:03:54 -0400 (Sun, 30 Aug 2009)
New Revision: 1295
Modified:
trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java
Log:
fixing unit test assertion
Modified:
trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java
===================================================================
---
trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java 2009-08-30
22:19:06 UTC (rev 1294)
+++
trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java 2009-08-31
02:03:54 UTC (rev 1295)
@@ -60,11 +60,12 @@
Transform transform =
DataTypeManager.getTransform(DataTypeManager.getDataTypeClass(src),
expectedValue.getClass());
Object result = transform.transform(value);
assertTrue(expectedValue.getClass().isAssignableFrom(result.getClass()));
+ assertFalse("Expected exception for " +src+ " to " +
target, //$NON-NLS-1$ //$NON-NLS-2$
+ isException(DataTypeManager.getDataTypeName(value.getClass()),
target,value));
} catch (TransformationException e) {
if (!isException(DataTypeManager.getDataTypeName(value.getClass()),
target,value)) {
throw e;
}
- fail("Expected exception for " +src+ " to " + target);
//$NON-NLS-1$ //$NON-NLS-2$
}
}
Show replies by date