This is an automated email from the ASF dual-hosted git repository.
reta 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 d53a7a3 CXF-7581: SwaggerUIResourceFilter doesn't allow call to
service, fixing test cases
d53a7a3 is described below
commit d53a7a3579d07d24be2e8df9982efb5609e1452d
Author: reta <[email protected]>
AuthorDate: Wed Dec 13 22:37:10 2017 -0500
CXF-7581: SwaggerUIResourceFilter doesn't allow call to service, fixing
test cases
---
.../jaxrs/description/Swagger2NonAnnotatedServiceDescriptionTest.java | 1 +
systests/jaxrs/src/test/resources/jaxrs_swagger2/WEB-INF/beans.xml | 1 +
2 files changed, 2 insertions(+)
diff --git
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/description/Swagger2NonAnnotatedServiceDescriptionTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/description/Swagger2NonAnnotatedServiceDescriptionTest.java
index 5d59f41..94be992 100644
---
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/description/Swagger2NonAnnotatedServiceDescriptionTest.java
+++
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/description/Swagger2NonAnnotatedServiceDescriptionTest.java
@@ -42,6 +42,7 @@ public class Swagger2NonAnnotatedServiceDescriptionTest
extends AbstractSwagger2
protected void run() {
final JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
sf.setResourceClasses(BookStore.class);
+ sf.setResourceClasses(BookStoreStylesheetsSwagger2.class);
sf.setResourceProvider(BookStore.class,
new SingletonResourceProvider(new BookStore()));
sf.setProvider(new JacksonJsonProvider());
diff --git a/systests/jaxrs/src/test/resources/jaxrs_swagger2/WEB-INF/beans.xml
b/systests/jaxrs/src/test/resources/jaxrs_swagger2/WEB-INF/beans.xml
index bed1e35..fba423e 100644
--- a/systests/jaxrs/src/test/resources/jaxrs_swagger2/WEB-INF/beans.xml
+++ b/systests/jaxrs/src/test/resources/jaxrs_swagger2/WEB-INF/beans.xml
@@ -40,6 +40,7 @@
<jaxrs:server address="/">
<jaxrs:serviceBeans>
<bean
class="org.apache.cxf.systest.jaxrs.description.BookStoreSwagger2"/>
+ <bean
class="org.apache.cxf.systest.jaxrs.description.BookStoreStylesheetsSwagger2"/>
</jaxrs:serviceBeans>
<jaxrs:features>
<bean class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].