SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
{
WrtDB::PropertyDAOReadOnly::WidgetPreferenceList existing =
- WrtDB::PropertyDAOReadOnly::GetPropertyList(m_widgetHandle);
+ WrtDB::PropertyDAOReadOnly::GetPropertyList(
+ WrtDB::WidgetDAOReadOnly::getTzAppId(m_widgetHandle)
+ );
//save all properties read from config.xml
FOREACH(prop, existing) {
PropertyDAOReadOnly::WidgetPreferenceList prefs_tid =
PropertyDAOReadOnly::GetPropertyList(it->tappid);
RUNNER_ASSERT(prefs_tid.size() == it->nrow);
- PropertyDAOReadOnly::WidgetPreferenceList prefs_aid =
- PropertyDAOReadOnly::GetPropertyList(it->whandleid);
- RUNNER_ASSERT(prefs_aid.size() == it->nrow);
}
}
{ //property key list
}
RUNNER_ASSERT_MSG(!(assert_flag),"Error, value doesn't make exception");
}
- {
- bool assert_flag;
- DbWidgetHandle handle_non_exist(2010);
- assert_flag=true;
- Try{
- PropertyDAOReadOnly::WidgetPreferenceList prefs =
- PropertyDAOReadOnly::GetPropertyList(handle_non_exist);
- } Catch(WidgetDAOReadOnly::Exception::WidgetNotExist)
- {
- assert_flag=false;
- }
- RUNNER_ASSERT_MSG(!(assert_flag),"Error, value doesn't make exception");
- }
}