use of org.sakuli.services.forwarder.database.dao.impl.Dao in project sakuli by ConSol.
the class DaoTest method testCreateSqlSetStringForNamedParameter.
@Test
public void testCreateSqlSetStringForNamedParameter() throws Throwable {
testling = new Dao(dataSource) {
};
MapSqlParameterSource source = new MapSqlParameterSource().addValue("testling2", "value").addValue("testling", "value");
Assert.assertEquals("SET testling2=:testling2, testling=:testling ", testling.createSqlSetStringForNamedParameter(source.getValues()));
source.addValue("nullable", null);
Assert.assertEquals("SET testling2=:testling2, testling=:testling ", testling.createSqlSetStringForNamedParameter(source.getValues()));
}
Aggregations