You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/09/15 03:28:13 UTC
svn commit: r695325 - in /activemq/camel/trunk/components/camel-rest: pom.xml
src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java
Author: ningjiang
Date: Sun Sep 14 18:28:12 2008
New Revision: 695325
URL: http://svn.apache.org/viewvc?rev=695325&view=rev
Log:
Fixed the test error of CamelContextResourceTest
Modified:
activemq/camel/trunk/components/camel-rest/pom.xml
activemq/camel/trunk/components/camel-rest/src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java
Modified: activemq/camel/trunk/components/camel-rest/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rest/pom.xml?rev=695325&r1=695324&r2=695325&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rest/pom.xml (original)
+++ activemq/camel/trunk/components/camel-rest/pom.xml Sun Sep 14 18:28:12 2008
@@ -90,6 +90,12 @@
<version>${jetty-version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-2.1</artifactId>
+ <version>${jetty-version}</version>
+ <scope>test</scope>
+ </dependency>
<!-- enable commons-logging when inside jetty6:run -->
<!--
<dependency>
Modified: activemq/camel/trunk/components/camel-rest/src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rest/src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java?rev=695325&r1=695324&r2=695325&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rest/src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java (original)
+++ activemq/camel/trunk/components/camel-rest/src/test/java/org/apache/camel/rest/resources/CamelContextResourceTest.java Sun Sep 14 18:28:12 2008
@@ -28,6 +28,7 @@
import org.apache.camel.rest.Main;
import org.apache.camel.rest.model.EndpointLink;
import org.apache.camel.rest.model.Endpoints;
+import org.apache.camel.rest.util.JAXBContextResolver;
/**
* @version $Revision: 1.1 $
@@ -50,19 +51,21 @@
public void testMain() throws Exception {
ClientConfig cc = new DefaultClientConfig();
// use the following jaxb context resolver
- //cc.getProviderClasses().add(JAXBContextResolver.class);
+ //cc.getClasses().add(JAXBContextResolver.class);
Client c = Client.create(cc);
WebResource wr = c.resource("http://localhost:" + port + Main.WEBAPP_CTX);
// get the initial representation
- Endpoints endpoints = wr.path("camel/endpoints").accept("application/xml").get(Endpoints.class);
+
+ Endpoints endpoints = wr.path("endpoints").accept("application/xml").get(Endpoints.class);
// and print it out
System.out.println("Found: " + endpoints.getEndpoints());
List<EndpointLink> list = endpoints.getEndpoints();
assertTrue("Should have received some endpoints!", !list.isEmpty());
+
}
}
\ No newline at end of file