[seam-commits] Seam SVN: r10253 - in trunk/examples/restbay/src/org/jboss/seam/example/restbay: test and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Mar 31 08:58:06 EDT 2009


Author: jharting
Date: 2009-03-31 08:58:06 -0400 (Tue, 31 Mar 2009)
New Revision: 10253

Modified:
   trunk/examples/restbay/src/org/jboss/seam/example/restbay/resteasy/CalendarConverter.java
   trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java
Log:
fix for StringConverter test

Modified: trunk/examples/restbay/src/org/jboss/seam/example/restbay/resteasy/CalendarConverter.java
===================================================================
--- trunk/examples/restbay/src/org/jboss/seam/example/restbay/resteasy/CalendarConverter.java	2009-03-31 11:47:03 UTC (rev 10252)
+++ trunk/examples/restbay/src/org/jboss/seam/example/restbay/resteasy/CalendarConverter.java	2009-03-31 12:58:06 UTC (rev 10253)
@@ -14,7 +14,7 @@
 @Provider
 public class CalendarConverter implements StringConverter<GregorianCalendar>
 {
-   public static final String ISO_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
+   public static final String ISO_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZ";
 
    public GregorianCalendar fromString(String s)
    {

Modified: trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java
===================================================================
--- trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java	2009-03-31 11:47:03 UTC (rev 10252)
+++ trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java	2009-03-31 12:58:06 UTC (rev 10253)
@@ -208,8 +208,8 @@
    @Test
    public void testStringConverter() throws Exception
    {
-      final String ISO_DATE = "2007-07-10T14:54:56-05:00";
-      final String ISO_DATE_MILLIS = "1184072096000";
+      final String ISO_DATE = "2007-07-10T14:54:56-0500";
+      final String ISO_DATE_MILLIS = "1184097296000";
 
       new ResourceRequest(Method.GET, "/restv1/test/foo/" + ISO_DATE)
       {




More information about the seam-commits mailing list