A Java 21-based small test framework Rijksmuseum Collection API, using OkHttp for HTTP requests and Jackson for JSON (de)serialization. Includes JUnit 5 with Allure reporting and a GitHub Actions CI workflow.
- Java 21
- Maven
- OkHttp
- Jackson
- SLF4J + Logback
- JUnit 5
- Allure Reporting
- GitHub Actions CI
Before you run this project, make sure you have:
-
Java 21 installed
-
Maven 3 installed (
mvn -vshould show version 3.8 or higher) -
Allure CLI installed for local report generation (optional)
brew install allure # macOS scoop install allure # Windows (Scoop)
-or-
-
IntelliJ IDEA or other IDE (Maven will pick up an Allure plugin)
This project uses the Rijksmuseum legacy API which requires an API key.
Get your API key from Rijksmuseum API registration.
export RIJKSMUSEUM_API_KEY=your_api_key_here
-or- add it to Windows environment variables (shell restart required)
-or- add it to your IDE's run configuration.
- Building the project
mvn clean compile exec:java
- Running the tests
mvn clean test
- Generate the report
When running from IDE, run the maven plugin allure:serve goal
When running locally, make sure Allure executable is in PATH, then
mvn allure:report
allure serve target/allure-results
Alternatively, check the GitHub actions tab
This project is open source and free to use under the MIT License. Enjoy!