assertTrue(true);
}
}
public void testDoubleTypeConversion() {
WritableHandler handler = new WritableHandler(DoubleWritable.class);
DoubleWritable d = (DoubleWritable) handler.set("1.0");
assertEquals(d.get(), 1.0d);
d = (DoubleWritable) handler.set(1.0d);
assertEquals(d.get(), 1.0d);
d = (DoubleWritable) handler.set(1.0f);
assertEquals(d.get(), 1.0d);
d = (DoubleWritable) handler.set(1l);
assertEquals(d.get(), 1.0d);
d = (DoubleWritable) handler.set(1);
assertEquals(d.get(), 1.0d);
try {
d = (DoubleWritable) handler.set(true);
assertTrue(false);
} catch (IllegalArgumentException e) {
assertTrue(true);
}
}