Author: rareddy
Date: 2010-09-24 15:12:34 -0400 (Fri, 24 Sep 2010)
New Revision: 2605
Modified:
branches/7.1.x/client/src/test/java/org/teiid/client/TestBatchSerializer.java
Log:
TEIID-1269: Marking IOExceptions to be logged at DETAIL level, and making BatchSerializer
to throw RuntimeException if serialization does not match up.
Modified: branches/7.1.x/client/src/test/java/org/teiid/client/TestBatchSerializer.java
===================================================================
---
branches/7.1.x/client/src/test/java/org/teiid/client/TestBatchSerializer.java 2010-09-24
18:58:17 UTC (rev 2604)
+++
branches/7.1.x/client/src/test/java/org/teiid/client/TestBatchSerializer.java 2010-09-24
19:12:34 UTC (rev 2605)
@@ -195,7 +195,7 @@
public void testSerializeDatatypeMismatch() throws Exception {
try {
helpTestSerialization(new String[] {DataTypeManager.DefaultDataTypes.DOUBLE},
new List[] {Arrays.asList(new Object[] {"Hello!"})}); //$NON-NLS-1$
- } catch (IOException e) {
+ } catch (RuntimeException e) {
assertEquals("The modeled datatype double for column 0 doesn't match
the runtime type \"java.lang.String\". Please ensure that the column's
modeled datatype matches the expected data.", e.getMessage()); //$NON-NLS-1$
}
}
Show replies by date