Overview of stubby4j
masterstubby4j is a highly flexible and configurable stub server designed for testing interactions in service-oriented (SoA) or micro-services architectures. It allows developers and QA engineers to stub out external web services for contract testing in both Dockerized and non-containerized environments.
Supported Protocols:
HTTP/1.1HTTP/2(supports bothh2cover TCP andh2over TLS using ALPN)WebSockets(overHTTP/1.1, with or without TLS)
Key Capabilities:
- Protocol Support: TLS versions
1.0,1.1,1.2, and1.3. - Advanced Matching: Regex support for URIs, query parameters, headers, and POST payloads; dynamic token replacement using regex capturing groups.
- Flow Control: Fault injection (e.g., returning a bad response after X successful ones), dynamic flows (multiple responses for the same URI), and delayed responses for performance testing.
- Proxying & Recording: Request proxying to other services and Record & Replay functionality.
- Content Handling: Serving binary files (images, PDFs, etc.) and verifying HTTP
30xredirects and various Authorization types (Basic,Bearer Token, etc.).