MCPcopy Create free account
hub / github.com/MITK/MITK / frame045a

Function frame045a

Modules/CppMicroServices/test/usModuleTest.cpp:246–263  ·  view source on GitHub ↗

Add a service listener with a broken LDAP filter to Get an exception

Source from the content-addressed store, hash-verified

244
245// Add a service listener with a broken LDAP filter to Get an exception
246void frame045a(ModuleContext* mc)
247{
248 LocalListener sListen1;
249 std::string brokenFilter = "A broken LDAP filter";
250
251 try
252 {
253 mc->AddServiceListener(&sListen1, &LocalListener::ServiceChanged, brokenFilter);
254 }
255 catch (const std::invalid_argument& /*ia*/)
256 {
257 //assertEquals("InvalidSyntaxException.GetFilter should be same as input string", brokenFilter, ise.GetFilter());
258 }
259 catch (...)
260 {
261 US_TEST_FAILED_MSG(<< "test module, wrong exception on broken LDAP filter:");
262 }
263}
264
265} // end unnamed namespace
266

Callers 1

usModuleTestFunction · 0.85

Calls 1

AddServiceListenerMethod · 0.45

Tested by

no test coverage detected