From ac8bb2ddecac09d60760ef83319b627548d0fd77 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 1 Jul 2010 06:04:35 +0000 Subject: Minimal support for implementation.widget, using simplified (and generic) JSONRPC and ATOMPub Javascript proxies. Minor changes to the server runtime to serve reference requests from widgets. Adjust and simplified samples using the widget support. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@959521 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/json/json-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/json/json-test.cpp') diff --git a/sca-cpp/trunk/modules/json/json-test.cpp b/sca-cpp/trunk/modules/json/json-test.cpp index b74f068710..707a785968 100644 --- a/sca-cpp/trunk/modules/json/json-test.cpp +++ b/sca-cpp/trunk/modules/json/json-test.cpp @@ -93,11 +93,11 @@ bool testJSON() { bool testJSONRPC() { JSONContext cx; { - const string lm("{\"id\": 1, \"method\": \"system.listMethods\", \"params\": []}"); + const string lm("{\"id\": 1, \"method\": \"test\", \"params\": []}"); const list e = content(readJSON(mklist(lm), cx)); const list v = elementsToValues(e); assert(assoc("id", v) == mklist("id", 1)); - assert(assoc("method", v) == mklist("method", string("system.listMethods"))); + assert(assoc("method", v) == mklist("method", string("test"))); assert(assoc("params", v) == mklist("params", list())); } { -- cgit v1.2.3