cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r708044 - in /cxf/trunk/rt/javascript/src/test: java/org/apache/cxf/javascript/DocLitWrappedClientTest.java resources/org/apache/cxf/javascript/DocLitWrappedTests.js
Date Sun, 26 Oct 2008 21:20:56 GMT
Author: bimargulies
Date: Sun Oct 26 14:20:56 2008
New Revision: 708044

URL: http://svn.apache.org/viewvc?rev=708044&view=rev
Log:
Unit test that really tests inherited properties in Javascript.

Modified:
    cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/DocLitWrappedClientTest.java
    cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/DocLitWrappedTests.js

Modified: cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/DocLitWrappedClientTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/DocLitWrappedClientTest.java?rev=708044&r1=708043&r2=708044&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/DocLitWrappedClientTest.java
(original)
+++ cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/DocLitWrappedClientTest.java
Sun Oct 26 14:20:56 2008
@@ -237,6 +237,12 @@
         testUtilities.runInsideContext(Void.class, new JSRunnable<Void>() {
 
             public Void run(Context context) {
+                Notifier notifier = testUtilities.rhinoCallConvert("testInheritance", Notifier.class,
+                                                                   testUtilities.javaToJS(getAddress()));
+                boolean notified = notifier.waitForJavascript(1000 * 10);
+                assertTrue(notified);
+                SimpleDocLitWrappedImpl impl = (SimpleDocLitWrappedImpl)rawImplementor;
+                assertEquals("less", impl.getLastInheritanceTestDerived().getName());
                 return null;
             }
             

Modified: cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/DocLitWrappedTests.js
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/DocLitWrappedTests.js?rev=708044&r1=708043&r2=708044&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/DocLitWrappedTests.js
(original)
+++ cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/DocLitWrappedTests.js
Sun Oct 26 14:20:56 2008
@@ -131,7 +131,7 @@
 	derived.setId(33);
 	derived.setDerived("arrived");
 	derived.setName("less");
-	intf.inheritanceTestFunction(derived);
+	intf.inheritanceTestFunction(test1SuccessCallback, test1ErrorCallback, derived);
 
 	return globalNotifier;
 }
\ No newline at end of file



Mime
View raw message