cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r598062 - /incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js
Date Sun, 25 Nov 2007 21:45:43 GMT
Author: bimargulies
Date: Sun Nov 25 13:45:43 2007
New Revision: 598062

URL: http://svn.apache.org/viewvc?rev=598062&view=rev
Log:
fix build. New generation code allows client to blow up on 'impossible' null pointers.

Modified:
    incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js

Modified: incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js?rev=598062&r1=598061&r2=598062&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTests.js Sun Nov 25
13:45:43 2007
@@ -23,6 +23,9 @@
 {
  	var assert = new Assert(explanation); // this will throw out in Java.
 }
+
+var bean2 = new org_apache_cxf_javascript_testns3_testBean2();
+bean2.setStringItem("bleep");
  
 function serializeTestBean1_1()
 {
@@ -32,6 +35,7 @@
  	bean1.setLongItem(64000000);
  	bean1.setBase64Item(''); // later
  	bean1.setOptionalIntItem(101);
+ 	bean1.setBeanTwoItem(bean2);
  	var a = [];
  	a.push(543);
  	bean1.setOptionalIntArrayItem(a);
@@ -46,6 +50,7 @@
  	bean1.setLongItem(64000000);
  	bean1.setBase64Item(''); // later
  	bean1.setOptionalIntItem(null);
+ 	bean1.setBeanTwoItem(bean2);
  	var a = [];
  	a.push(543);
  	a.push(null);
@@ -62,5 +67,6 @@
  	bean1.setBase64Item(''); // later
  	bean1.setOptionalIntItem(33);
  	bean1.setOptionalIntArrayItem(null);
-	return bean1.serialize(jsutils, "testBean1");
+ 	bean1.setBeanTwoItem(bean2);
+ 	return bean1.serialize(jsutils, "testBean1");
 } 



Mime
View raw message