cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r701316 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java
Date Fri, 03 Oct 2008 07:16:58 GMT
Author: cschneider
Date: Fri Oct  3 00:16:58 2008
New Revision: 701316

URL: http://svn.apache.org/viewvc?rev=701316&view=rev
Log:
Fix for failed test with other locales

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java?rev=701316&r1=701315&r2=701316&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestImplTest.java
Fri Oct  3 00:16:58 2008
@@ -21,6 +21,7 @@
 
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.Locale;
 
 import javax.ws.rs.core.EntityTag;
 import javax.ws.rs.core.MultivaluedMap;
@@ -87,7 +88,7 @@
     @Test
     public void testBeforeDate() throws Exception {
         metadata.putSingle("If-Modified-Since", "Sat, 29 Oct 1994 19:43:31 GMT");
-        Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz")
+        Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH)
             .parse("Sun, 29 Oct 1994 19:43:31 GMT");
         
         ResponseBuilder rb = 
@@ -99,7 +100,7 @@
     @Ignore
     public void testAfterDate() throws Exception {
         metadata.putSingle("If-Modified-Since", "Sat, 29 Oct 1994 19:43:31 GMT");
-        Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz")
+        Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH)
             .parse("Fri, 28 Oct 1994 19:43:31 GMT");
         
         



Mime
View raw message