Skip to main content
  • Log in
  • Manage Cookies
EclipseCon - Eclipse Foundation
  • Conference
    • Program Schedule
    • Program List
    • Registration
  • Features
    • Community Day
    • Hacker Day
    • Dinner Meetups
    • OSGi Summit
    • Keynotes
  • Community
    • Code of Conduct
    • Health & Safety at EclipseCon
    • Community Resources
    • 2022 Speakers
    • Information for Speakers
  • Sponsors
    • Be a Sponsor
    • Information for Exhibitors
    • Our Sponsors
    • Sponsor Testimonials
  • Venue
    • Conference Venue
    • Hotels
    • Ludwigsburg
  • About Us
    • EclipseCon 2022
    • Program Committee
    • The Eclipse Foundation
    • Past Conferences
    • Other Events
  1. Home
  2. EclipseCon
  3. EclipseCon 2022
  4. Sessions
  5. Mock my infrastructure! Using Testcontainers for better integration tests.

Mock my infrastructure! Using Testcontainers for better integration tests.

Session details
Status: 
Accepted
Speaker(s): 
Karsten Thoms (itemis AG)
Experience level: 
Intermediate
Tags: 
Integration Testing
Testcontainers
microservice
docker
Session Track: 
Java
Session Type: 
Standard

Integration tests are essential to test server application interaction with infrastructure services like databases, message brokers or others. The Testcontainers framework makes it easy to set up all infrastructure services your application code needs by using Docker images during the test execution. By doing so, integration tests can run independent of any external infrastructure and are more robust and faster to execute.

This session will show you how easy it is to use Testcontainers to test Java microservices that use external services, by example of a SpringBoot application. You will learn which services are supported out-of-the-box by Testcontainers, and how to write adapters for containers that are not directly supported. Finally, I will discuss the implications on test execution time and on the design of tests.

 

Objective of the presentation: 
This session is an introduction to the Testcontainers framework. I will show how to write tests that spin up a Postgres database and MinIO s3 which are used by a SpringBoot based application. Since MinIO is not directly supported, I will use this as a reference to write an own Testcontainer adapter. With this session I want to encourage developers to write more integration tests which are independent of services that have to be provided externally or that can only be executed in the context of a build execution, and instead fully local and integrated in your IDE.
Attendee pre-requisites - If none, enter "N/A": 
N/A
Schedule info
Time: 
25 Oct 2022 - 17:00 to 25 Oct 2022 - 17:35
Room: 
Theater Stage
  • Sign in to post comments.

Elite

  • Huawei
  • IBM

Premium

  • Yatta Solutions GmbH
  • Red Hat
  • Eurotech

Basic

  • Bosch IO GmbH
  • SSI Schaefer IT Solutions GmbH
  • EclipseSource
  • ARCAD Software
  • Obeo
  • Mercedes-Benz Tech Innovation
  • SCANOSS
  • TypeFox GmbH

Media

  • GermanTechJobs

Become a Sponsor

Eclipse Foundation

  • About Us
  • Contact Us
  • Sponsor
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors
  • Careers

Legal

  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace
EclipseCon is brought to you by The Eclipse Foundation with the support of our sponsors.
Powered by Drupal and built on COD.

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top