You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by do...@apache.org on 2008/09/24 01:37:43 UTC
svn commit: r698403 -
/incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java
Author: doll
Date: Tue Sep 23 16:37:43 2008
New Revision: 698403
URL: http://svn.apache.org/viewvc?rev=698403&view=rev
Log:
SHINDIG-617
Added a test case for BeanJsonCoverter to show that this bug is not reproducible.
Modified:
incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java
Modified: incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java?rev=698403&r1=698402&r2=698403&view=diff
==============================================================================
--- incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java (original)
+++ incubator/shindig/trunk/java/social-api/src/test/java/org/apache/shindig/social/opensocial/util/BeanJsonConverterTest.java Tue Sep 23 16:37:43 2008
@@ -225,4 +225,12 @@
}
}
+ public void testJsonToPerson() throws Exception {
+ String jsonPerson = "{age : '10', hasApp : 'true'}";
+ Person result = beanJsonConverter.convertToObject(jsonPerson, Person.class);
+
+ assertEquals(10, result.getAge().intValue());
+ assertEquals(true, result.getHasApp().booleanValue());
+ }
+
}