search for: invokeapi

Displaying 1 result from an estimated 1 matches for "invokeapi".

2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...apifunction = test_callback_function; + + CPPUNIT_ASSERT(apifunction == Multiplexer::instance()->getAPI(APINAME)); +} + +void +TestMultiplexer::testEnsureCallingAnUnregisteredAPIFails() +{ + string input = string("This is some input"); + string result = Multiplexer::instance()->invokeAPI(APINAME + "!", input); + + CPPUNIT_ASSERT(string("") == result); +} + +void TestMultiplexer::testEnsureAPIIsCalled() +{ + string expected = "This is what I expected"; + string result = Multiplexer::instance()->invokeAPI(APINAME, expected); + + CPPUNIT_ASSERT(e...