/penr-oz-springapi-wiremock

Wiremock Unit Testing example of Spring API

Primary LanguageJavaMIT LicenseMIT

Wiremock Unit Testing example of Spring API

Reference Documentation

For further reference, please consider the following sections:

Build

$ ./gradlew build

Run

$ docker-compose up

Use

try

Debug

docker-compose.override.yml

version: '3'
services:
  penr-oz-springapi-wiremock:
    entrypoint: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005
    ports:
      - "8080:8080"
      - "5005:5005"

then

$ docker-compose up

finally use your favorite IDE to put breakpoints and connect to debugger e.g. Intellij Remote Java which requires a correct local JDK installed.

Stop

$ docker-compose stop

Clean

$ docker-compose down

Check/Health

docker-compose ps