Author: ajaquith
Date: Wed Jun 11 23:29:49 2008
New Revision: 666977
URL: http://svn.apache.org/viewvc?rev=666977&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/auth/user/JDBCUserDatabaseTest.java
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/XMLUserDatabaseTest.java
Modified:
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/JDBCUserDatabaseTest.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/JDBCUserDatabaseTest.java?rev=666977&r1=666976&r2=666977&view=diff
==============================================================================
---
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/JDBCUserDatabaseTest.java
(original)
+++
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/JDBCUserDatabaseTest.java
Wed Jun 11 23:29:49 2008
@@ -132,7 +132,7 @@
{
UserProfile profile = m_db.findByEmail( "[EMAIL PROTECTED]" );
- Map<Serializable,Serializable> attributes = profile.getAttributes();
+ Map<String,Serializable> attributes = profile.getAttributes();
assertEquals( 2, attributes.size() );
assertTrue( attributes.containsKey( "attribute1" ) );
assertTrue( attributes.containsKey( "attribute2" ) );
Modified:
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/XMLUserDatabaseTest.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/XMLUserDatabaseTest.java?rev=666977&r1=666976&r2=666977&view=diff
==============================================================================
---
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/XMLUserDatabaseTest.java
(original)
+++
incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/auth/user/XMLUserDatabaseTest.java
Wed Jun 11 23:29:49 2008
@@ -68,7 +68,7 @@
{
UserProfile profile = m_db.findByEmail( "[EMAIL PROTECTED]" );
- Map<Serializable,Serializable> attributes = profile.getAttributes();
+ Map<String,Serializable> attributes = profile.getAttributes();
assertEquals( 2, attributes.size() );
assertTrue( attributes.containsKey( "attribute1" ) );
assertTrue( attributes.containsKey( "attribute2" ) );