Skip to content

This is a library that shows how to test a third-party service using restclient

Notifications You must be signed in to change notification settings

josdem/juice-restclient

Repository files navigation

Juice RestClient

GitHub

This project shows how to test an API using RestClient with Junit Jupiter

To run tests

gradle test

To run a single test

gradle test --tests ${testName}

where:

  • ${testName} is your test name

To publish library to artifactory using Gradle

export ARTIFACTORY_USER=${username}
export ARTIFACTORY_PASSWORD=${password}
gradle publish

where:

  • ${username} Is artifactory username
  • ${password} Is artifactory password

Note: If you want to learn more and publish your own library, feel free to drop me a message on my home page website and ask for a Jfrog credentials.

To publish library to artifactory using Maven

mvn deploy

Make sure you setup your artifactory credentials in ${USER_HOME}/.m2/settings.xml

<settings>
    <servers>
        <server>
            <username>${username}</username>
            <password>${password}</password>
            <id>snapshots</id>
        </server>
    </servers>
</settings>

where:

  • ${username} Is artifactory username
  • ${password} Is artifactory password

Read this as reference:

About

This is a library that shows how to test a third-party service using restclient

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages