You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2019/01/13 02:25:09 UTC

[cxf] branch master updated: fix JaxRsServiceTest with JDK11

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 542bad9  fix JaxRsServiceTest with JDK11
542bad9 is described below

commit 542bad9a529fcb296011234284493e143e9f0e14
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Sun Jan 13 10:24:50 2019 +0800

    fix JaxRsServiceTest with JDK11
---
 .../java/org/apache/cxf/osgi/itests/jaxrs/JaxRsTestActivator.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/osgi/itests/src/test/java/org/apache/cxf/osgi/itests/jaxrs/JaxRsTestActivator.java b/osgi/itests/src/test/java/org/apache/cxf/osgi/itests/jaxrs/JaxRsTestActivator.java
index 8f4b286..4a28390 100644
--- a/osgi/itests/src/test/java/org/apache/cxf/osgi/itests/jaxrs/JaxRsTestActivator.java
+++ b/osgi/itests/src/test/java/org/apache/cxf/osgi/itests/jaxrs/JaxRsTestActivator.java
@@ -18,6 +18,8 @@
  */
 package org.apache.cxf.osgi.itests.jaxrs;
 
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
 import org.apache.cxf.endpoint.Server;
 import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
 import org.apache.cxf.osgi.itests.AbstractServerActivator;
@@ -26,10 +28,10 @@ public class JaxRsTestActivator extends AbstractServerActivator {
 
     @Override
     protected Server createServer() {
-//        Bus bus = BusFactory.newInstance().createBus();
-//        bus.setExtension(JaxRsTestActivator.class.getClassLoader(), ClassLoader.class);
+        Bus bus = BusFactory.newInstance().createBus();
+        bus.setExtension(JaxRsTestActivator.class.getClassLoader(), ClassLoader.class);
         JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
-//        sf.setBus(bus);
+        sf.setBus(bus);
         sf.setResourceClasses(BookStore.class);
         sf.setAddress("/jaxrs");
         return sf.create();