[jackson-jaxrs-providers] 120/162: Trying to add a test to prevent accidental incompatibilities with resteasy jackson provider
Timo Aaltonen
tjaalton at moszumanska.debian.org
Mon Sep 8 22:16:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton pushed a commit to branch master
in repository jackson-jaxrs-providers.
commit 91cc6c5a2867c366b1db7c8c26cb63c50e2d69c3
Author: Tatu Saloranta <tatu.saloranta at iki.fi>
Date: Thu Jan 30 21:12:12 2014 -0800
Trying to add a test to prevent accidental incompatibilities with resteasy jackson provider
---
.../com/fasterxml/jackson/jaxrs/base/ProviderBase.java | 2 +-
json/pom.xml | 10 +++++++++-
.../jaxrs/json/resteasy/RestEasyProviderLoadingTest.java | 14 ++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/base/src/main/java/com/fasterxml/jackson/jaxrs/base/ProviderBase.java b/base/src/main/java/com/fasterxml/jackson/jaxrs/base/ProviderBase.java
index d2c838b..6ebacf7 100644
--- a/base/src/main/java/com/fasterxml/jackson/jaxrs/base/ProviderBase.java
+++ b/base/src/main/java/com/fasterxml/jackson/jaxrs/base/ProviderBase.java
@@ -484,7 +484,7 @@ public abstract class ProviderBase<
protected EP_CONFIG _configForWriting(MAPPER mapper, Annotation[] annotations) {
return _configForWriting(mapper, annotations, _defaultWriteView);
}
-
+
protected abstract EP_CONFIG _configForReading(ObjectReader reader,
Annotation[] annotations);
diff --git a/json/pom.xml b/json/pom.xml
index d2a02ae..bc61106 100644
--- a/json/pom.xml
+++ b/json/pom.xml
@@ -64,7 +64,15 @@
<version>${version.jackson.jaxb}</version>
</dependency>
- <!-- test deps should come from parent, including jersey -->
+ <!-- test deps should mostly come from parent, including jersey -->
+ <dependency>
+ <groupId>org.jboss.resteasy</groupId>
+ <artifactId>resteasy-jackson2-provider</artifactId>
+ <version>3.0.6.Final</version>
+ <scope>test</scope>
+ </dependency>
+
+
</dependencies>
<build>
<plugins>
diff --git a/json/src/test/java/com/fasterxml/jackson/jaxrs/json/resteasy/RestEasyProviderLoadingTest.java b/json/src/test/java/com/fasterxml/jackson/jaxrs/json/resteasy/RestEasyProviderLoadingTest.java
new file mode 100644
index 0000000..3c5e5c4
--- /dev/null
+++ b/json/src/test/java/com/fasterxml/jackson/jaxrs/json/resteasy/RestEasyProviderLoadingTest.java
@@ -0,0 +1,14 @@
+package com.fasterxml.jackson.jaxrs.json.resteasy;
+
+import org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider;
+
+import com.fasterxml.jackson.jaxrs.json.JaxrsTestBase;
+
+public class RestEasyProviderLoadingTest extends JaxrsTestBase
+{
+ public void testLoading() throws Exception
+ {
+ ResteasyJackson2Provider provider = new ResteasyJackson2Provider();
+ assertNotNull(provider); // just to avoid compiler warning
+ }
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-jaxrs-providers.git
More information about the pkg-java-commits
mailing list