geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1143322 - in /geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src: main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java test/java/org/apache/geronimo/testsuite/restful/TestRestful.java
Date Wed, 06 Jul 2011 09:54:07 GMT
Author: genspring
Date: Wed Jul  6 09:54:06 2011
New Revision: 1143322

URL: http://svn.apache.org/viewvc?rev=1143322&view=rev
Log:
Fixed restful testsuite.   the ApplicaiontConfig should return a set of resource classes to
expose explicitly.

Modified:
    geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java
    geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/test/java/org/apache/geronimo/testsuite/restful/TestRestful.java

Modified: geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java?rev=1143322&r1=1143321&r2=1143322&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java
(original)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/main/java/org/apache/geronimo/testsuite/restful/app/ApplicationConfig.java
Wed Jul  6 09:54:06 2011
@@ -15,6 +15,17 @@
  * limitations under the License.
  */
 package org.apache.geronimo.testsuite.restful.app;
+
+import java.util.HashSet;
+import java.util.Set;
+
 @javax.ws.rs.ApplicationPath("resources")
 public class ApplicationConfig extends javax.ws.rs.core.Application {
+    
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> classes = new HashSet<Class<?>>();
+        classes.add(OrderResource.class);
+        return classes;
+    }
 }
\ No newline at end of file

Modified: geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/test/java/org/apache/geronimo/testsuite/restful/TestRestful.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/test/java/org/apache/geronimo/testsuite/restful/TestRestful.java?rev=1143322&r1=1143321&r2=1143322&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/test/java/org/apache/geronimo/testsuite/restful/TestRestful.java
(original)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/restful-test/src/test/java/org/apache/geronimo/testsuite/restful/TestRestful.java
Wed Jul  6 09:54:06 2011
@@ -76,7 +76,7 @@ public class TestRestful extends TestSup
 		}
 		String responseText = response.toString();
 		Assert.assertEquals(responseText, 
-				"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><order id=\"2\"><customer>wgz</customer><price>666.0</price><productname>water</productname><quantity>1</quantity><seller>shop</seller></order>");
+				"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><order id=\"1\"><customer>wgz</customer><price>666.0</price><productname>water</productname><quantity>1</quantity><seller>shop</seller></order>");
 		connection.disconnect();
 		
 	}



Mime
View raw message