diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/samples/implementation-extension/src/test/java/sample/ClientTest.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/samples/implementation-extension/src/test/java/sample/ClientTest.java b/sca-java-2.x/trunk/samples/implementation-extension/src/test/java/sample/ClientTest.java index 46350e26d6..6b5c3983d1 100644 --- a/sca-java-2.x/trunk/samples/implementation-extension/src/test/java/sample/ClientTest.java +++ b/sca-java-2.x/trunk/samples/implementation-extension/src/test/java/sample/ClientTest.java @@ -20,10 +20,14 @@ package sample; import static java.lang.System.out; -import static sample.Xutil.dom; import static sample.Xutil.elem; +import static sample.Xutil.elems; +import static sample.Xutil.print; +import static sample.Xutil.select; import static sample.Xutil.text; -import static sample.Xutil.xpath; +import static sample.Xutil.xdom; +import static sample.Xutil.xfilter; +import static sample.Xutil.xreduce; import org.w3c.dom.Element; @@ -52,8 +56,10 @@ public class ClientTest { public String wello(String s) { out.println("ClientTest.wello(" + s + ")"); - final Element hreq = dom("http://sample", "hello", elem("name", text(s))); + final Element hreq = xdom("http://sample", "hello", elem("name", text(s))); + final Element hres = wello.call("hello", hreq); - return xpath("//*", hres); + + return xreduce(print, "", xfilter(select("result"), elems(hres))); } } |