java-test-library

Provide reusable Java patterns for crypto-scout integration and end-to-end tests.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/akarazhev/crypto-scout-test --skill java-test-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-test-library
Source: https://github.com/akarazhev/crypto-scout-test/tree/main/.opencode/skills/java-test-library
Command: npx skills add https://github.com/akarazhev/crypto-scout-test --skill java-test-library

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Java teams building tests for crypto-scout projects often reinvent utilities for mocks, container orchestration, and messaging. This guide provides patterns and best practices to accelerate development of robust test libraries.

Core Features & Use Cases

  • MockData: Typed API for loading bundled JSON fixtures (e.g., Bybit, CMC, internal data)
  • PodmanCompose: Container lifecycle management for test environments (TimescaleDB + RabbitMQ)
  • RabbitMQ Utilities: Streams and AMQP helpers to simulate messaging in tests
  • DBUtils and Assertions: Utilities for connectivity checks and database state validation
  • Use Case: Rapidly compose a reliable Java test suite for integration tests in crypto-scout projects

Quick Start

Install the library via Maven and integrate MockData, PodmanCompose, and RabbitMQ utilities into your test suite.

Frequently Asked Questions about java-test-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up integration tests for Java with RabbitMQ and TimescaleDB containers?

Java integration tests with RabbitMQ and TimescaleDB use PodmanCompose to manage container lifecycles, providing isolated test environments. This pattern lets you spin up messaging and database services, run typed mock data assertions, and clean up database state automatically.

What's the best way to load typed mock data from JSON fixtures in Java tests?

Typed mock data loading in Java tests uses a dedicated MockData API to bundle and parse JSON fixtures like Bybit or CMC data. This approach binds JSON files to typed Java objects, enabling reliable fixture-driven integration and end-to-end tests without manual parsing.

Does Podman Compose work with Maven-based Java test workflows for container orchestration?

Podman Compose integrates with Maven-based Java test workflows by managing container lifecycles for test environments. It supports spinning up TimescaleDB and RabbitMQ containers directly during the Maven test phase, ensuring services are ready before assertions run and torn down afterward.

Can I simulate AMQP messaging streams in Java integration tests without a live broker?

Simulating AMQP messaging streams in Java integration tests uses RabbitMQ utilities to replicate messaging behavior within containerized test environments. These helpers provide streams and AMQP APIs to publish and consume test messages, validating messaging logic without depending on a live external broker.

How do I validate database state and connectivity after running Java integration tests?

Validating database state and connectivity after Java integration tests uses DBUtils and Assertions utilities to check connection health and verify final database records. This ensures containerized TimescaleDB instances reflect expected post-test states and cleans up residual data automatically.

What Java version is required for modern crypto-scout integration test utilities?

Modern crypto-scout integration test utilities require Java 25 to run Maven-based test workflows. This version supports the latest language features needed by MockData, PodmanCompose, and RabbitMQ test helper APIs for building robust end-to-end test suites.