jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r666978 - /incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java
Date Thu, 12 Jun 2008 06:30:26 GMT
Author: ajaquith
Date: Wed Jun 11 23:30:25 2008
New Revision: 666978

URL: http://svn.apache.org/viewvc?rev=666978&view=rev
Log:
Minor tightening of Map API for Serializer methods; the keys are now Strings rather than Serializable.
This is a dev branch, remember!

Modified:
    incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java

Modified: incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java?rev=666978&r1=666977&r2=666978&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java (original)
+++ incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/util/SerializerTest.java Wed Jun 11 23:30:25
2008
@@ -18,12 +18,12 @@
 
     public void testSerializeMap() throws Exception
     {
-        Map<Serializable, Serializable> map = new HashMap<Serializable, Serializable>();
+        Map<String, Serializable> map = new HashMap<String, Serializable>();
         map.put( "attribute1", "some random value" );
         map.put( "attribute2", "another value" );
         String serializedForm = Serializer.serializeToBase64( map );
 
-        Map<? extends Serializable, ? extends Serializable> newMap = Serializer.deserializeFromBase64(
serializedForm );
+        Map<String, ? extends Serializable> newMap = Serializer.deserializeFromBase64(
serializedForm );
         assertEquals( 2, newMap.size() );
         assertTrue( newMap.containsKey( "attribute1" ) );
         assertTrue( newMap.containsKey( "attribute2" ) );



Mime
View raw message