openamf/src/java/org/openamf/io AMFSerializerTest.java,1.11,1.12

Sean Sullivan <[email protected]> Wed, 22 Mar 2006 22:01:21 +0000
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/io
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7228/src/java/org/openamf/io

Modified Files:
	AMFSerializerTest.java 
Log Message:
serialize a java.util.HashMap object.


Index: AMFSerializerTest.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFSerializerTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** AMFSerializerTest.java	5 Sep 2004 06:49:25 -0000	1.11
--- AMFSerializerTest.java	22 Mar 2006 22:01:04 -0000	1.12
***************
*** 6,9 ****
--- 6,10 ----
  import org.xml.sax.InputSource;
  import org.openamf.*;
+ import java.util.*;
  import junit.framework.*;
  
***************
*** 133,136 ****
--- 134,148 ----
      message.addBody(bodyWithIntegerNumber);
  
+     Map foo = new HashMap();
+     foo.put("key1", "value1");
+     foo.put("key2", "value2");
+     foo.put("3", "value3");
+     AMFBody bodyWithMap = new AMFBody("someService.someMethod",
+     		"someResponse",
+ 			foo,
+ 			AMFBody.DATA_TYPE_MIXED_ARRAY);
+     
+     message.addBody(bodyWithMap);
+     
      AMFBody bodyWithDoubleNumber = new AMFBody("someService.someMethod",
      		"someResponse",



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642