Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Example of Wiremock JAX-RS usage to create stub in runnable standalone jar.

License

Notifications You must be signed in to change notification settings

tomasbjerre/wiremock-jaxrs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiremock JAX-RS Example

Build Status

Example of:

https://github.com/tomasbjerre/wiremock-jaxrs

See also:

https://bjurr.com/automatic-stubs-with-wiremock/

This demonstrates a structure like:

  • module - Parent pom.
  • module-api - JAX-RS annotated API. Very slim API jar.
  • module-api-mock - Runnable mock-server based on Wiremock JAX-RS.

Usage

You can get the example runnable jar from:

https://dl.bintray.com/tomasbjerre/tomasbjerre/se/bjurr/wiremock/wiremock-jaxrs-example-api-mock/

And run it like this:

java -jar wiremock-jaxrs-example-api-mock-1.6-jar-with-dependencies.jar 

You can try it out by invoking with curl like:

curl -v -H "Accept: application/json" http://localhost:8080/get?filter1=abc
curl -v -H "Accept: application/json" http://localhost:8080/get?filter1=some+attr+value

About

Example of Wiremock JAX-RS usage to create stub in runnable standalone jar.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published