This project implements a JaCaMo bridge for Yggdrasil.
- JDK 8+
Clone this project with:
git clone --recursive git@github.com:Interactions-HSG/jacamo-hypermedia.git
Run ./gradlew
One simple solution for mocking HTTP requests is MockServer:
-
Add the expected HTTP responses in
mockserver/mockserver.json
. The format of an expectation is given in the MockServer OpenAPI specification. -
Run MockServer with Docker. To use the expectation initialization file created in the previous step, you will have to use a bind mount and to set an environment variable like so:
docker run -v "$(pwd)"/mockserver/mockserver.json:/tmp/mockserver/mockserver.json \
-e MOCKSERVER_INITIALIZATION_JSON_PATH=/tmp/mockserver/mockserver.json \
-d --rm --name mockserver -p 1080:1080 mockserver/mockserver
The above command will run the Docker container in the background and will print the container ID. To stop the container: docker stop CONTAINER_ID