use of com.adaptris.jdbc.JdbcResultRow in project interlok by adaptris.
the class BooleanColumnTranslatorTest method testTrueStringColumnName.
@Test
public void testTrueStringColumnName() throws Exception {
JdbcResultRow row = new JdbcResultRow();
row.setFieldValue("testField", "true", Types.BOOLEAN);
String translated = translator.translate(row, "testField");
assertEquals("true", translated);
}
use of com.adaptris.jdbc.JdbcResultRow in project interlok by adaptris.
the class BooleanColumnTranslatorTest method testFalseString.
@Test
public void testFalseString() throws Exception {
JdbcResultRow row = new JdbcResultRow();
row.setFieldValue("testField", "false", Types.BOOLEAN);
String translated = translator.translate(row, 0);
assertEquals("false", translated);
}
use of com.adaptris.jdbc.JdbcResultRow in project interlok by adaptris.
the class BooleanColumnTranslatorTest method testFalseBool.
@Test
public void testFalseBool() throws Exception {
JdbcResultRow row = new JdbcResultRow();
boolean val = false;
row.setFieldValue("testField", val, Types.BOOLEAN);
String translated = translator.translate(row, 0);
assertEquals("false", translated);
}
use of com.adaptris.jdbc.JdbcResultRow in project interlok by adaptris.
the class BooleanColumnTranslatorTest method testTrueBoolean.
@Test
public void testTrueBoolean() throws Exception {
JdbcResultRow row = new JdbcResultRow();
row.setFieldValue("testField", Boolean.valueOf("true"), Types.BOOLEAN);
String translated = translator.translate(row, 0);
assertEquals("true", translated);
}
use of com.adaptris.jdbc.JdbcResultRow in project interlok by adaptris.
the class BooleanColumnTranslatorTest method testFalseBoolean.
@Test
public void testFalseBoolean() throws Exception {
JdbcResultRow row = new JdbcResultRow();
row.setFieldValue("testField", Boolean.valueOf("false"), Types.BOOLEAN);
String translated = translator.translate(row, 0);
assertEquals("false", translated);
}
Aggregations