use of org.eclipse.scout.rt.server.jdbc.AbstractSqlService in project scout.rt by eclipse.
the class StatementProcessorTest method testFormData.
@Test
public void testFormData() throws Exception {
IntegerHolder countConcurrent = new IntegerHolder();
PersonFormData formData = new PersonFormData();
formData.getAddressTable().addRow();
formData.getAddressTable().addRow();
//
AbstractSqlService sqlService = new AbstractSqlService() {
};
BeanInstanceUtil.initializeBeanInstance(sqlService);
StatementProcessor sp = new StatementProcessor(sqlService, "SELECT COUNT(*) " + "FROM PERSON P " + "WHERE NVL(:birthdate,TO_DATE('1.1.3000','dd.mm.yyyy')) >= SYSDATE " + "AND :name like '%Me%' " + "AND :{addressTable.street} like '%Park%' " + "INTO :countConcurrent ", new Object[] { formData, new NVPair("countConcurrent", countConcurrent) });
sp.simulate();
String sqlPlainTextDump = sp.createSqlDump(false, true);
assertFalse(sqlPlainTextDump.contains("UNPARSED"));
}
Aggregations