Registry / testing / jersey-test-framework-inmemory

jersey-test-framework-inmemory

JSON →
library1.19.4javamavenunverified

Jersey is the open source (under dual CDDL+GPL license) JAX-RS (JSR 311) production quality Reference Implementation for building RESTful Web services.

<dependency> <groupId>com.sun.jersey.jersey-test-framework</groupId> <artifactId>jersey-test-framework-inmemory</artifactId> <version>1.19.4</version> </dependency>
INSTALL
IMPORT
SIG · JERSEY-TEST-FRAMEW
J
jersey-test-framework-inmemory
testingjavav1.19.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JerseyTest
com.sun.jersey.test.framework.JerseyTest

Minimal JUnit test using Jersey Test Framework in-memory container.

import com.sun.jersey.test.framework.JerseyTest; import com.sun.jersey.api.client.WebResource; import javax.ws.rs.core.Application; public class MyTest extends JerseyTest { @Override protected Application configure() { return new ResourceConfig(MyResource.class); } public void testGet() { WebResource webResource = resource(); String response = webResource.path("/myresource").get(String.class); System.out.println(response); } }
Debug
Known issues
breakingVersion 1.x is outdated; consider migrating to Jersey 2.x (org.glassfish.jersey.test-framework).
fix
Update dependency to org.glassfish.jersey.test-framework:jersey-test-framework-core and related modules.
affects: <=1.19.4
Upgrade
Version history
1.19.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jersey-test-framework-inmemory — mvn dependency:get jersey-test-framework-inmemory · libregistry