# Testcontainers

Testcontainers is an open-source library that provides throwaway, lightweight Docker-container instances of test dependencies such as databases, message brokers, and web browsers.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Data Access Testing With @testcontainers

DevFeed: [Data Access Testing With @testcontainers](<https://devfeed.tech/articles/data-access-testing-with-testcontainers-117746.md>)

Original publisher: [Read original article](<https://blog.master.dev/data-access-testing-with-testcontainers/>)

Author: Adam Rackis

Published: 2026-11-04T12:58:05Z

Content type: tutorial

Language: en

Sources: [Master.dev Blog RSS Feed](<https://devfeed.tech/sources/master-dev-blog-rss-feed.md>)

Topics: [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [claude](<https://devfeed.tech/tags/claude.md>), [cli](<https://devfeed.tech/tags/cli.md>), [container](<https://devfeed.tech/tags/container.md>), [containers](<https://devfeed.tech/tags/containers.md>), [crud](<https://devfeed.tech/tags/crud.md>), [database](<https://devfeed.tech/tags/database.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-container](<https://devfeed.tech/tags/docker-container.md>), [drizzle](<https://devfeed.tech/tags/drizzle.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [schema](<https://devfeed.tech/tags/schema.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

For complex data access logic, an isolated database integration test can verify that real inserts and queries preserve the expected object structure. The article uses `@testcontainers/postgresql` to start a temporary Postgres container in Vitest, applies a Drizzle schema with `drizzle-kit push`, and exercises workout insertion and retrieval through the application's actual code. A round-trip assertion catches errors in joins, writes, or ordering without tying the test to particular table rows, which the author says makes it less fragile to schema changes. The tradeoff is setup time: the suite takes over a second to start, and Docker must be available locally; GitHub Actions Ubuntu runners are said to include it. The author recommends reserving this approach for meaningful, non-trivial database logic rather than basic CRUD tests.

### Source excerpt

Testing data access code has always been awkward: unit tests want to be fast and isolated, and a real database is neither. With Docker and @testcontainers you can spin up a throwaway Postgres inside your Vitest suite, push your Drizzle schema into it, and verify that your real insert and query code round-trips correctly.

## API Mocking and Testing With Microcks

DevFeed: [API Mocking and Testing With Microcks](<https://devfeed.tech/articles/api-mocking-and-testing-with-microcks-4497.md>)

Original publisher: [Read original article](<https://www.baeldung.com/java-microks-api-mocking-testing>)

Author: Andrei Branza

Published: 2026-08-22T23:20:24Z

Content type: tutorial

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

Topics: [Mocking](<https://devfeed.tech/topics/mocking.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [API](<https://devfeed.tech/topics/api.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [Amazon Simple Queue Service (SQS)](<https://devfeed.tech/topics/amazon-simple-queue-service-sqs.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [gRPC](<https://devfeed.tech/topics/grpc.md>), [Jenkins](<https://devfeed.tech/topics/jenkins.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [compose](<https://devfeed.tech/tags/compose.md>), [docker](<https://devfeed.tech/tags/docker.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [popular](<https://devfeed.tech/tags/popular.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-popular-testcontainers](<https://devfeed.tech/tags/testing-popular-testcontainers.md>)

### AI overview

This tutorial explains how to use Microcks with Testcontainers to generate API mocks from contracts and run conformance tests against real implementations. It covers importing an OpenAPI contract, starting Microcks in a JUnit 5 test, calling generated mock endpoints, and integrating mocking and testing into delivery workflows.

### Source excerpt

Learn how to use Testcontainers integration to spin up Microcks inside a JUnit5 test. The post API Mocking and Testing With Microcks first appeared on Baeldung.

## Scaling out Distroless adoption With AI

DevFeed: [Scaling out Distroless adoption With AI](<https://devfeed.tech/articles/scaling-out-distroless-adoption-with-ai-1254.md>)

Original publisher: [Read original article](<https://engineering.grab.com/scaling-out-distroless-adoption-with-ai>)

Author: Jia Yee Chong

Published: 2026-06-22T00:00:00Z

Content type: article

Language: en

Sources: [Grab Tech](<https://devfeed.tech/sources/grab-tech.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [make](<https://devfeed.tech/topics/make.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Docker Image](<https://devfeed.tech/topics/docker-image.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>)

Tags: [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [ci](<https://devfeed.tech/tags/ci.md>), [containers](<https://devfeed.tech/tags/containers.md>), [devsecops](<https://devfeed.tech/tags/devsecops.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [migration](<https://devfeed.tech/tags/migration.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [security](<https://devfeed.tech/tags/security.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Grab describes migrating services from heavy base images to Distroless images to reduce security risks and eliminate unnecessary binaries and associated CVEs. The article explains the runtime-failure risks of this migration and presents medium tests using Docker images, Testcontainers, and network proxies to verify configuration and runtime dependencies in CI.

### Source excerpt

Distroless adoption at Grab Grab is migrating from heavy base images to Distroless images to reduce security risks. By limiting each container to the application and its runtime dependencies, we shed non-essential binaries and associated Common Vulnerabilities and Exposures (CVEs). This migration is more than a compliance mandate; it is a strategic security decision to build a more resilient environment. Why Distroless requires rigorous testing Distroless adoption risk: Runtime failure Shifting to Distroless images introduces a critical technical risk: Runtime Failure. A service might build perfectly in Continuous Integration (CI), but fail at the deployment stage due to: Missing shared objects: Binaries might require specific libraries (.so files) present in Ubuntu but absent in Distroless. Implicit links: Third-party tools might expect specific system utilities or directory structures. Testing is required to ensure two things: The service spins up with the correct configuration. All runtime dependencies remain intact. Scaling this verification across thousands of services manually? That would take years, unless we found a way to automate the trust. The testing methodology As we perform changes to the Dockerfile definition of our services, it is important for us to include the corresponding test strategy to ensure that the changes that we make do not introduce a regression to our running services. Assessing the change introduced to our services, the lowest possible testing boundary would be that of what we define as medium tests in Grab. Medium tests in Grab At Grab, we categorize our test suites into 3 main sizes: small, medium and large. Small tests refer to functional tests whereby mocks are introduced via dependency injection. Large tests refer to end-to-end tests that run on actual services in our staging environment where nothing is mocked. Figure 1: Architecture diagram of a medium test environment Medium tests sit between the small and large tests. External

## Quarkus Newsletter #69 - June

DevFeed: [Quarkus Newsletter #69 - June](<https://devfeed.tech/articles/quarkus-newsletter-69-june-43935.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-69/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2026-06-09T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [dev](<https://devfeed.tech/tags/dev.md>), [developers](<https://devfeed.tech/tags/developers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-compose](<https://devfeed.tech/tags/docker-compose.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>)

### AI overview

Quarkus Newsletter #69 highlights articles and updates on migrating AI agents to Quarkus, measuring application energy consumption, running AWS services locally with Floci, adaptive model selection with LangChain4j, and profile-guided optimization for Quarkus native images.

### Source excerpt

Read "Empower your AI migrations to Quarkus with Skills" by Charles Moulliard to learn how to transform your AI agent into a framework domain: dependencies, jpa, web, etc expert capable of migrating Spring applications. Learn how to empower developers to make energy-aware design decisions with Quarkus in Christophe Laprun's "Measuring energy consumption of Quarkus applications". Check out Matheus Oliveira's article, "Floci: a Free, Drop-in LocalStack Alternative Built on Quarkus" to get a hands-on guide to Floci, the free open-source LocalStack alternative built on Quarkus. Run AWS locally with docker compose, drive S3, DynamoDB, SQS and Lambda from the CLI, wire a Quarkus app to it two ways (the amazon-services Dev Services floci provider and the Floci Testcontainers module), and migrate from LocalStack at the image and Dev Services level. Learn how LangChain4j 1.15.0`s voting pattern uses parallel multi-critic evaluation and runtime model switching to build smarter, cost-efficient agentic systems with Quarkus in "Parallel voting and adaptive model selection: smarter agentic AI on a budget" by Mario Fusco. Quarkus 3.35 introduces Profile-Guided Optimization (PGO) support for native images. Enable it with quarkus.native.pgo.enabled=true and let your integration tests drive the profiling - the build automatically produces an optimized native binary tailored to your application's actual runtime behavior. Learn how in Georgios Andrianakis's article "Profile-Guided Optimization for Quarkus Native Images" You will also see the latest Quarkus Insights episodes, top tweets/discussions and upcoming Quarkus attended events. Check out Newsletter #69: June! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## Testing Elasticsearch integration tests with Elasticsearch 9.x, Java client, and Testcontainers 2.x

DevFeed: [Testing Elasticsearch integration tests with Elasticsearch 9.x, Java client, and Testcontainers 2.x](<https://devfeed.tech/articles/testing-elasticsearch-it-just-got-simpler-78789.md>)

Original publisher: [Read original article](<https://www.elastic.co/search-labs/blog/elasticsearch-integration-tests>)

Author: Piotr Przybyl

Published: 2026-03-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Elasticsearch Labs](<https://devfeed.tech/sources/elasticsearch-labs.md>)

Topics: [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Maven](<https://devfeed.tech/topics/maven.md>)

Tags: [basics](<https://devfeed.tech/tags/basics.md>), [container](<https://devfeed.tech/tags/container.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [java](<https://devfeed.tech/tags/java.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article demonstrates a concise Java integration test using Testcontainers 2.x to run a secured Elasticsearch 9.3.1 node and the modern Elasticsearch Java client. It explains how clearer dependencies, typed APIs, and automatic resource cleanup reduce setup work while keeping tests close to production conditions.

### Source excerpt

Explaining how Elasticsearch integration tests have become simpler thanks to improvements in Elasticsearch 9.x, the modern Java client, and Testcontainers 2.x.

## Quarkus 3.29.3 - Maintenance release

DevFeed: [Quarkus 3.29.3 - Maintenance release](<https://devfeed.tech/articles/quarkus-3-29-3-maintenance-release-43778.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-3-29-3-released/>)

Author: Guillaume Smet (https://twitter.com/gsmet\_)

Published: 2025-11-14T00:00:00Z

Content type: release

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [migration](<https://devfeed.tech/topics/migration.md>), [changelog](<https://devfeed.tech/topics/changelog.md>), [version](<https://devfeed.tech/topics/version.md>)

Tags: [changelog](<https://devfeed.tech/tags/changelog.md>), [cli](<https://devfeed.tech/tags/cli.md>), [docker](<https://devfeed.tech/tags/docker.md>), [github](<https://devfeed.tech/tags/github.md>), [migration](<https://devfeed.tech/tags/migration.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [release](<https://devfeed.tech/tags/release.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

Quarkus 3.29.3 is a maintenance release that fixes a Testcontainers compatibility issue with recent Docker versions. The announcement recommends using the Quarkus CLI to update applications and links to migration guidance and the full changelog.

### Source excerpt

Today, we released Quarkus 3.29.3, a new maintenance release for our 3.29 stream. Among other issues, this release fixes a compatibility issue of Testcontainers with recent Docker versions. Update To update to Quarkus 3.29, we recommend updating to the latest version of the Quarkus CLI and run: quarkus update Note that quarkus update can update your applications from any version of Quarkus (including 2.x) to Quarkus 3.29. For more information about the adjustments you need to make to your applications, please refer to the Quarkus 3.29 migration guide. Full changelog You can get the full changelog of 3.29.3 on GitHub. Come Join Us We value your feedback a lot so please report bugs, ask for improvements... Let's build something great together! If you are a Quarkus user or just curious, don't be shy and join our welcoming community: provide feedback on GitHub; craft some code and push a PR; discuss with us on Zulip and on the mailing list; ask your questions on Stack Overflow.

## Quarkus Newsletter #60 - September

DevFeed: [Quarkus Newsletter #60 - September](<https://devfeed.tech/articles/quarkus-newsletter-60-september-43926.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-60/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2025-09-26T00:00:00Z

Content type: news

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Java](<https://devfeed.tech/topics/java.md>), [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>)

Tags: [development](<https://devfeed.tech/tags/development.md>), [java](<https://devfeed.tech/tags/java.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [newsletter](<https://devfeed.tech/tags/newsletter.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>)

### AI overview

Quarkus Newsletter #60 highlights articles on Unicode-safe REST APIs, Java and Quarkus AI applications, compact CRUD APIs with Hibernate ORM, LangChain4j services, MCP servers, and local LLM applications using Ollama and Testcontainers.

### Source excerpt

From hidden string pitfalls to emoji-safe endpoints, learn how to handle text correctly in modern Java applications with "Mastering Unicode in Java: Build World-Ready REST APIs with Quarkus" by Markus Eisele. Read "Infusing AI into Your Java applications" by Don Bourne & Michal Broz to learn how to create a simple RESTful Java AI application that asks a large language model (LLM) to write a short poem based on a topic provided by the application user. Check out Octavio Santana's "Build a REST API With Just 2 Classes in Java and Quarkus" to learn how Quarkus enables a full CRUD API with just two classes using Hibernate ORM with Panache. No controllers or repositories needed -- just define two classes, and deploy. Read "Building AI-Powered Applications with LangChain4j and Quarkus" by Hamid Khanjani to see how Quarkus + LangChain4j lets you build fast, testable, production-ready AI services in Java. Learn how to bridge the gap between generative AI's knowledge and its ability to act within an enterprise, enabling LLMs to interact with business systems. Read "The Universal Adapter for Enterprise AI: Mastering the MCP with Quarkus and Langchain4j" by Elder Moraes as a hands-on guide to building an MCP server and a Langchain4j client to enhance system flexibility and maintainability. Check out "Building local LLM AI-Powered Applications with Quarkus, Ollama and Testcontainers" by Jonathan Vila López, a complete development guide to build local LLM applications with Ollama and Quarkus and test them with Testcontainers. You will also see the latest Quarkus Insights episodes, top tweets/discussions and upcoming Quarkus attended events. Check out Newsletter #60: September! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## Catch Bugs Early with Testcontainers: Shift-Left Testing Made Easy

DevFeed: [Catch Bugs Early with Testcontainers: Shift-Left Testing Made Easy](<https://devfeed.tech/articles/catch-bugs-early-with-testcontainers-shift-left-testing-made-easy-6.md>)

Original publisher: [Read original article](<https://blog.abhimanyu-saharan.com/posts/catch-bugs-early-with-testcontainers-shift-left-testing-made-easy>)

Author: Abhimanyu Saharan

Published: 2025-05-15T00:00:00Z

Content type: article

Language: en

Sources: [Abhimanyu Saharan](<https://devfeed.tech/sources/abhimanyu-s-blog.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [code](<https://devfeed.tech/tags/code.md>), [docker](<https://devfeed.tech/tags/docker.md>), [integration](<https://devfeed.tech/tags/integration.md>), [shift-left](<https://devfeed.tech/tags/shift-left.md>), [speed](<https://devfeed.tech/tags/speed.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article explains how Testcontainers can run integration tests with real services to catch bugs earlier and improve software reliability, speed, and confidence.

### Source excerpt

Catch bugs early by running integration tests with real services using Testcontainers, improving reliability, speed, and confidence in your code.

## Quarkus Newsletter #52 - January

DevFeed: [Quarkus Newsletter #52 - January](<https://devfeed.tech/articles/quarkus-newsletter-52-january-43918.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-52/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2025-01-14T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Java](<https://devfeed.tech/topics/java.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [container](<https://devfeed.tech/topics/container.md>), [releases](<https://devfeed.tech/topics/releases.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [containers](<https://devfeed.tech/tags/containers.md>), [java](<https://devfeed.tech/tags/java.md>), [llm](<https://devfeed.tech/tags/llm.md>), [lts](<https://devfeed.tech/tags/lts.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [releases](<https://devfeed.tech/tags/releases.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>)

### AI overview

Quarkus Newsletter #52 highlights local AI-powered application development with Quarkus, Ollama, and Testcontainers, announces Quarkus 3.20 as the next LTS release, and links to guidance on resolving Quarkus test, container, and Liquibase integration issues.

### Source excerpt

Explore how to combine Quarkus, a modern Java framework optimized for cloud-native applications, with Ollama, a platform for running AI models locally with Jonathan Vila's article "Building local LLM AI-Powered Applications with Quarkus, Ollama and Testcontainers". Long Term Support (LTS) releases are designed for users who want to keep a given version for a longer period of time instead of following our monthly release pace. Quarkus 3.20 will be our next LTS version planned for release in late March. Read more about it in the blog post "Our next LTS will be Quarkus 3.20" from Guillaume Smet. Customizing your test resource manager and using a unified configuration, you can eliminate conflicts between the containers used by Liquibase and your application. Learn how in "Resolving Issues with Quarkus Tests, Test Containers, and Liquibase Integration" by tempmailgenerator on Reddit. You will also see the latest Quarkus Insights episodes, top tweets/discussions and upcoming Quarkus attended events. Check out Newsletter #52: January! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## Quarkus Newsletter #51 - December

DevFeed: [Quarkus Newsletter #51 - December](<https://devfeed.tech/articles/quarkus-newsletter-51-december-43917.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-51/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2024-12-12T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Java](<https://devfeed.tech/topics/java.md>), [Chat Bot](<https://devfeed.tech/topics/chatbot.md>), [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>)

Tags: [chatbots](<https://devfeed.tech/tags/chatbots.md>), [framework](<https://devfeed.tech/tags/framework.md>), [java](<https://devfeed.tech/tags/java.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [orm](<https://devfeed.tech/tags/orm.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Quarkus Newsletter #51 highlights Quarkus's contributor milestone and features articles on building chatbots with LangChain4j, testing Apache Camel routes with Testcontainers, reactive Hibernate with Panache on Kubernetes, and creating Quarkus applications. It also covers Quarkus Insights episodes, community discussions, and upcoming events.

### Source excerpt

"Quarkus has surpassed the 1,000 contributor milestone" by Dimitrios Andreadis will explore the evolution and future of Quarkus, Red Hat's next-generation Java framework designed to optimize applications for cloud-native environments. "Java Quarkus LangChain4j - Building a Chatbot" by Bhagvan Kommadi will guide you through leveraging two powerful tools -- Quarkus and LangChain4j -- to create chatbots that are not only efficient and scalable but also capable of understanding and generating human-like responses. "Testing Apache Camel Routes with Testcontainers" by Andras Fejes describes how Apache Camel and Testcontainers combine EIPs for integration and Testcontainers for robust, automated testing. Hamid Khanjani's "Hibernate Reactive with Panache: The Quarkus-Powered ORM Revolution for Reactive Java Applications and Kubernetes" describes how when Hibernate is combined with Panache, an intuitive and declarative ORM layer from Quarkus, it becomes a game-changer for Java developers. Explore different choices available for developing a new Quarkus application in "Getting Started with Quarkus: A Guide to Application Creation" by Jagnya Datta Panigrahi. You will also see the latest Quarkus Insights episodes, top tweets/discussions and upcoming Quarkus attended events. Check out Newsletter #51: December! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## Quarkus Newsletter #47 - August

DevFeed: [Quarkus Newsletter #47 - August](<https://devfeed.tech/articles/quarkus-newsletter-47-august-43913.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-47/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2024-08-12T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [development](<https://devfeed.tech/tags/development.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Quarkus Newsletter #47 highlights Quarkus's open-source and enterprise adoption efforts, tutorials on Hibernate Reactive and Quarkus, testing with Testcontainers, Micrometer guidance, AWS Lambda deployment, and related community content and events.

### Source excerpt

Quarkus recently announced its intention to join the Commhaus Foundation to further solidify its commitment to open-source development and enterprise adoption. Learn more by reading blog posts from Jeff Beck and Max Rydahl Andersen. Explore Hibernate Reactive and Quarkus in-depth by building a reactive bank deposit application from scratch with this great tutorial "Hibernate Reactive and Quarkus" by Reza Ganji & Liam Williams. The article, "Testing a Quarkus Application Using Testcontainers for Service Dependencies" by Paul Pearson & Liam Williams will allow you to see the power of using Testcontainers to help test a Quarkus application using 'live' service-to-service testing. Read "A Guide to Micrometer in Quarkus" by Yatin Batra to explore and gain a comprehensive understanding of Micrometers in Quarkus. Discover some tips and pointers about deploying Quarkus on AWS in this "Deploying native Quarkus REST API's in AWS Lambda" by Patryk Szczypień. You will also see the latest Quarkus Insights episodes, top tweets/discussions and upcoming Quarkus attended events. Check out Newsletter #47: August! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## Using modules for Testcontainers with Golang

DevFeed: [Using modules for Testcontainers with Golang](<https://devfeed.tech/articles/using-modules-for-testcontainers-with-golang-47465.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2023/12/using-modules-for-testcontainers-with-golang.html>)

Author: Fabien Pozzobon

Published: 2023-12-18T23:00:00Z

Content type: tutorial

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [container](<https://devfeed.tech/topics/container.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [podman](<https://devfeed.tech/topics/podman.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [docker](<https://devfeed.tech/tags/docker.md>), [golang](<https://devfeed.tech/tags/golang.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [integration-test](<https://devfeed.tech/tags/integration-test.md>), [podman](<https://devfeed.tech/tags/podman.md>), [redis](<https://devfeed.tech/tags/redis.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

### AI overview

This tutorial explains how to use Testcontainers modules with Go for integration testing against containerized dependencies. It also describes an internal Redis helper library using the Functional Options Pattern and discusses container cleanup through Testcontainers' garbage collector.

### Source excerpt

In this post, we explain how to use modules for Testcontainers with Golang and how to fix common issues.

## Quarkus Newsletter #36 - September

DevFeed: [Quarkus Newsletter #36 - September](<https://devfeed.tech/articles/quarkus-newsletter-36-september-43902.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-newsletter-36/>)

Author: James Cobb (https://twitter.com/insectengine)

Published: 2023-09-15T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Java](<https://devfeed.tech/topics/java.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>), [Iris](<https://devfeed.tech/topics/iris.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>)

Tags: [hibernate](<https://devfeed.tech/tags/hibernate.md>), [java](<https://devfeed.tech/tags/java.md>), [openai](<https://devfeed.tech/tags/openai.md>), [openai-api](<https://devfeed.tech/tags/openai-api.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>)

### AI overview

Quarkus Newsletter #36 highlights practical content for Java and Quarkus developers, including Testcontainers Desktop, Quarkus extensions, OpenAI API image generation, Cryostat agent profiling, Eclipse JNoSQL data integration, REST API development, and IRIS with Hibernate.

### Source excerpt

Explore how we can use the Testcontainers Desktop app while building a Quarkus application by reading "Joyful Quarkus Application Development using Testcontainers Desktop" by Siva Katamreddy. Extensions can significantly increase the application's performance, help developers be more productive while developing their applications, integrate complex dependencies much easier, and simplify the application's source code. Kevin Dubois shows you how to tap into this superpower in "Quarkus extensions give Java dependencies superpowers". Explore how to integrate OpenAI API with Quarkus in "Generate AI-based Images with Quarkus and OpenAI DALL.E" by Antonio Perrone. In "How to use Cryostat agent to profile Java workloads", Andrew Azores gives a brief overview of what the Cryostat agent does, reasons to instrument your containerized applications with the Cryostat agent, and finally, an example of how to include the Cryostat agent into a Quarkus application. In today's data-driven world, the ability to seamlessly integrate and manage data from diverse sources is crucial for the success of modern applications. Otavio Santana & Michael Relich shows you how in "Leveraging Eclipse JNoSQL 1.0.0: Quarkus Integration and Building a Pet-Friendly REST API". "Java Quarkus application working with IRIS" by Dmitry Maslennikov creates an example of an application on Java working with Hibernate dialect for IRIS, wanted to use RealWorld application, and found realization for Quarkus. You will also see the latest Quarkus Insights episodes, top tweets and upcoming Quarkus attended events. Check out Newsletter #36: August! Want to get newsletters in your inbox? Sign up for the newsletter using the on page form.

## When to Use jOOQ and When to Use Native SQL

DevFeed: [When to Use jOOQ and When to Use Native SQL](<https://devfeed.tech/articles/when-to-use-jooq-and-when-to-use-native-sql-28972.md>)

Original publisher: [Read original article](<https://blog.jooq.org/when-to-use-jooq-and-when-to-use-native-sql/>)

Author: lukaseder

Published: 2022-12-08T13:53:02Z

Content type: comparison

Language: en

Sources: [jOOQ](<https://devfeed.tech/sources/jooq.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Database](<https://devfeed.tech/topics/database.md>), [rdbms](<https://devfeed.tech/topics/rdbms.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>)

Tags: [cons](<https://devfeed.tech/tags/cons.md>), [examples](<https://devfeed.tech/tags/examples.md>), [jdbc](<https://devfeed.tech/tags/jdbc.md>), [jdbctemplate](<https://devfeed.tech/tags/jdbctemplate.md>), [jdbi](<https://devfeed.tech/tags/jdbi.md>), [jooq](<https://devfeed.tech/tags/jooq.md>), [jooq-in-use](<https://devfeed.tech/tags/jooq-in-use.md>), [native-sql](<https://devfeed.tech/tags/native-sql.md>), [plain-jdbc](<https://devfeed.tech/tags/plain-jdbc.md>), [plain-sql-templating](<https://devfeed.tech/tags/plain-sql-templating.md>), [rdbms](<https://devfeed.tech/tags/rdbms.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-json](<https://devfeed.tech/tags/sql-json.md>), [stored-procedures](<https://devfeed.tech/tags/stored-procedures.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>)

### AI overview

This comparison explains when to use the jOOQ API and when to use native SQL for complex queries. It describes jOOQ's advantages for dynamic SQL, multiple database dialects, type safety, data mapping, stored procedures, security, exports, and diagnostics, while noting usability drawbacks for large static queries with many CTEs or derived tables.

### Source excerpt

A frequently encountered doubt people have when using jOOQ is to decide when a "complex" query should be written using jOOQ API vs. when it should be implemented using native SQL. The jOOQ manual is full of side by side examples of the same query, e.g. Using jOOQ: Using native SQL: In the native SQL ... Continue reading When to Use jOOQ and When to Use Native SQL ->

## How to setup remote docker host

DevFeed: [How to setup remote docker host](<https://devfeed.tech/articles/how-to-setup-remote-docker-host-27332.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202209/remote-docker/>)

Published: 2022-09-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Image](<https://devfeed.tech/topics/image.md>), [Docker Image](<https://devfeed.tech/topics/docker-image.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [x86](<https://devfeed.tech/topics/x86.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [aws](<https://devfeed.tech/tags/aws.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-images](<https://devfeed.tech/tags/docker-images.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [integration-test](<https://devfeed.tech/tags/integration-test.md>), [linux](<https://devfeed.tech/tags/linux.md>), [remote](<https://devfeed.tech/tags/remote.md>), [tls](<https://devfeed.tech/tags/tls.md>), [x86](<https://devfeed.tech/tags/x86.md>)

### AI overview

This tutorial explains how to set up a remote Docker host for integration tests when required ARM images are unavailable. It uses a Linux x86_64 AWS EC2 machine, configures TLS access to the Docker daemon, and connects a local Docker client to the remote host.

### Source excerpt

Not all docker images are available for ARM architecture (hopefully this will improve over time). Right now I'm working on a project where images for ARM are not available. Emulation works ok (but slow) most of the time. Lately, I stumbled upon an interesting performance/startup issue when running amd64-based containers using testcontainers in an integration test. Read more

## How to Integration Test Stored Procedures with jOOQ

DevFeed: [How to Integration Test Stored Procedures with jOOQ](<https://devfeed.tech/articles/how-to-integration-test-stored-procedures-with-jooq-28942.md>)

Original publisher: [Read original article](<https://blog.jooq.org/how-to-integration-test-stored-procedures-with-jooq/>)

Author: lukaseder

Published: 2022-08-22T12:36:00Z

Content type: tutorial

Language: en

Sources: [jOOQ](<https://devfeed.tech/sources/jooq.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Database](<https://devfeed.tech/topics/database.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Java](<https://devfeed.tech/topics/java.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [database](<https://devfeed.tech/tags/database.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [integration-test](<https://devfeed.tech/tags/integration-test.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [java](<https://devfeed.tech/tags/java.md>), [jooq](<https://devfeed.tech/tags/jooq.md>), [jooq-in-use](<https://devfeed.tech/tags/jooq-in-use.md>), [junit](<https://devfeed.tech/tags/junit.md>), [maven](<https://devfeed.tech/tags/maven.md>), [stored-procedures](<https://devfeed.tech/tags/stored-procedures.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [unit-test](<https://devfeed.tech/tags/unit-test.md>)

### AI overview

This tutorial explains how to integration-test database stored procedures and functions with Java, jOOQ, Testcontainers, and JUnit. It shows how to run PostgreSQL in Testcontainers, generate jOOQ classes for stored procedures, and reuse Java test infrastructure instead of manually binding to procedures through JDBC.

### Source excerpt

When you write stored procedures and functions in your database, you want to ensure their correctness, just like with your Java code. In Java, this is done with unit tests, typically with JUnit. For example, if you have the following code in Java: Then, you might write a test like this: But how do we ... Continue reading How to Integration Test Stored Procedures with jOOQ ->

## Functional tests with Testcontainers

DevFeed: [Functional tests with Testcontainers](<https://devfeed.tech/articles/functional-tests-with-testcontainers-47442.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2022/04/functional-tests-with-testcontainers.html>)

Author: Marek Hudyma

Published: 2022-04-11T22:00:00Z

Content type: tutorial

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Java](<https://devfeed.tech/topics/java.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [database](<https://devfeed.tech/tags/database.md>), [docker](<https://devfeed.tech/tags/docker.md>), [functional-testing](<https://devfeed.tech/tags/functional-testing.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [java](<https://devfeed.tech/tags/java.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

### AI overview

This tutorial explains functional testing and demonstrates how Zalando Marketing Services uses the Testcontainers JVM library with Spring-based Java backend applications. It describes running the service and its dependencies in Docker containers to create a black-box test environment close to production.

### Source excerpt

We explore how to write functional tests using Testcontainers.org library in Java-based backend applications.

## Integration tests with Testcontainers

DevFeed: [Integration tests with Testcontainers](<https://devfeed.tech/articles/integration-tests-with-testcontainers-47414.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2021/02/integration-tests-with-testcontainers.html>)

Author: Marek Hudyma

Published: 2021-02-24T23:00:00Z

Content type: tutorial

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Java](<https://devfeed.tech/topics/java.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [based](<https://devfeed.tech/tags/based.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [integration](<https://devfeed.tech/tags/integration.md>), [java](<https://devfeed.tech/tags/java.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

### AI overview

A tutorial on writing integration tests for Java backend applications with Testcontainers.org. It explains integration-test principles, appropriate test proportions, and using Docker containers to test interactions with databases and external services.

### Source excerpt

We explore how to write integration tests using Testcontainers.org library in Java-based backend applications.

## Quarkus and Testcontainers

DevFeed: [Quarkus and Testcontainers](<https://devfeed.tech/articles/quarkus-and-testcontainers-18860.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/quarkus-and-testcontainers/>)

Published: 2020-11-28T16:45:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Database](<https://devfeed.tech/topics/database.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [databases](<https://devfeed.tech/tags/databases.md>), [docker](<https://devfeed.tech/tags/docker.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [orm](<https://devfeed.tech/tags/orm.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [schema](<https://devfeed.tech/tags/schema.md>), [sql](<https://devfeed.tech/tags/sql.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

A tutorial on integrating Quarkus test resources with Testcontainers for JUnit tests. It explains the limitations of combining the Quarkus and Testcontainers JUnit extensions, recommends dynamically assigned Docker ports, and presents Quarkus test resources as an alternative for managing container lifecycles and database setup.

### Source excerpt

Table of Contents Bonus: Schema Creation The Testcontainers project is invaluable for spinning up containerized resources during your (JUnit) tests, e.g. databases or Kafka clusters. For users of JUnit 5, the project provides the @Testcontainers extension, which controls the lifecycle of containers used by a test. When testing a Quarkus application though, this is at odds with Quarkus' own @QuarkusTest extension; it's a recommended best practice to avoid fixed ports for any containers started by Testcontainers. Instead, you should rely on Docker to automatically allocate random free ports. This avoids conflicts between concurrently running tests, e.g. amongst multiple Postgres containers, started up by several parallel job runs in a CI environment, all trying to allocate Postgres' default port 5432. Obtaining the randomly assigned port and passing it into the Quarkus bootstrap process isn't possible though when combining the two JUnit extensions.

## Testcontainers

DevFeed: [Testcontainers](<https://devfeed.tech/articles/testcontainers-27310.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201907/testcontainers/>)

Published: 2019-07-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [docker](<https://devfeed.tech/tags/docker.md>), [integration](<https://devfeed.tech/tags/integration.md>), [redis](<https://devfeed.tech/tags/redis.md>), [services](<https://devfeed.tech/tags/services.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A tutorial on using Testcontainers to run Docker containers for integration tests. It demonstrates testing communication with a live Redis instance without manually preparing infrastructure.

### Source excerpt

Recently I've found a very interesting project which allows to spin up docker containers for test purposes. Writing tests checking integration with external services is not an easy task. With testcontainers library it gets simpler because you can have external service up and running just for your test in a couple of lines of code. Read more