cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r775198 - in /cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs: BadgerFishProvider.java JAXRSClientServerResourceCreatedSpringProviderTest.java
Date Fri, 15 May 2009 15:44:34 GMT
Author: sergeyb
Date: Fri May 15 15:44:33 2009
New Revision: 775198

URL: http://svn.apache.org/viewvc?rev=775198&view=rev
Log:
Fixing a wrong Content-Language value in test

Modified:
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/BadgerFishProvider.java
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceCreatedSpringProviderTest.java

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/BadgerFishProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/BadgerFishProvider.java?rev=775198&r1=775197&r2=775198&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/BadgerFishProvider.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/BadgerFishProvider.java
Fri May 15 15:44:33 2009
@@ -96,7 +96,7 @@
     public void writeTo(Object obj, Class<?> clazz, Type genericType, Annotation[]
annotations,  
         MediaType m, MultivaluedMap<String, Object> headers, OutputStream os) {
         try {
-            if (!new Locale("badger-fish-language").equals(requestHeaders.getLanguage()))
{
+            if (!new Locale("badgerFishLanguage").equals(requestHeaders.getLanguage())) {
                 throw new RuntimeException();
             }
             

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceCreatedSpringProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceCreatedSpringProviderTest.java?rev=775198&r1=775197&r2=775198&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceCreatedSpringProviderTest.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceCreatedSpringProviderTest.java
Fri May 15 15:44:33 2009
@@ -50,7 +50,7 @@
         URL url = new URL(endpointAddress);
         URLConnection connect = url.openConnection();
         connect.addRequestProperty("Accept", "application/json");
-        connect.addRequestProperty("Content-Language", "badger-fish-language");
+        connect.addRequestProperty("Content-Language", "badgerFishLanguage");
         InputStream in = connect.getInputStream();
         assertNotNull(in);           
 



Mime
View raw message