{"id":3838,"date":"2019-04-04T18:07:36","date_gmt":"2019-04-04T18:07:36","guid":{"rendered":"https:\/\/voxxeddays.com\/minsk\/?p=3838"},"modified":"2019-04-04T18:07:36","modified_gmt":"2019-04-04T18:07:36","slug":"integration-testing-with-docker-and-testcontainers","status":"publish","type":"post","link":"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html","title":{"rendered":"Integration testing with Docker and Testcontainers"},"content":{"rendered":"<p><a><\/a>[vc_row][vc_column][vc_empty_space height=&#8221;70px&#8221;]<div class=\"speakers  \" >\n  \t\t\t<div class=\"\">\n                <div class=\"first_line \" ><\/div>\n    \t\t\t            <div class=\"first_title \" >\n                                <p>\n                                Integration testing with Docker and Testcontainers\n                                <\/p>\n    \t\t\t            <\/div>\n   \t\t\t\t            <div class=\"first_description\">\n                                <p>\n                                \nUnit testing is fine, but without proper integration testing, especially if you work with external resources like databases and other services, you might not know how your application will actually behave once it has been deployed to the real production environment.<\/p>\n<p>Before Docker, configuring the environment for integration testing was painful \u2013 people were using fake database implementations, mocking servers, usually it was not cross-platform as well. However, thanks to Docker, now we can quickly prepare the environment for our tests.<\/p>\n<p>In this workshop we would like to show how you can use Testcontainers ( https:\/\/github.com\/testcontainers\/testcontainers-java ) \u2013 a popular Java testing library that provides lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. We will integrate it into a Spring Boot microservice and use real PostgreSQL and Redis databases to test it, will isolate it from other microservices, and maybe even start Selenium browsers in Docker and test our application, all with the same library!<\/p>\n<table class=\"custom-info\">\n<tr>\n<td>Main language<\/td>\n<td>Russian Proposal<\/td>\n<\/tr>\n<tr>\n<td>Audience level<\/td>\n<td>Beginner &amp; novice<\/td>\n<\/tr>\n<tr>\n<td>Type of presentation<\/td>\n<td>Slides and code<\/td>\n<\/tr>\n<\/table>\n\n                                <\/p>\n                            <\/div>\n                            <div class=\"mini_gap\"><\/div>\n                <div class=\"speakers_row\">\n                    <div class=\"speakers_image\" style=\" background-image: url(https:\/\/voxxeddays.com\/minsk\/wp-content\/uploads\/sites\/42\/2019\/04\/Sergei-Egorov.jpg)\">\n                    <\/div>\n                    <div class=\"centred\">\n                        <div class=\"speakers_description \">\n                            <h3>Sergei Egorov<\/h3>\n                            <small><\/small>\n                            <br>\n\t\t\t\t\t        <p>\n\t\t\t\t\t        <a><\/a>Sergei works at Pivotal on Project Reactor in Berlin, Germany. He is an active member of the Open Source community, member of the Apache Foundation, co-maintainer of the Testcontainers project, and a contributor to various OSS projects (Apache Groovy, Testcontainers, JBoss Modules, Spring Boot, to name a few), likes to share the knowledge and was presenting at different conferences and meetups in Russia, Germany, Ukraine, Norway, Denmark, Spain, and Estonia. He is passionate about DevOps topics, clouds, and infrastructure. Before Pivotal, he was working at Vivy, N26, Zalando, ZeroTurnaround, TransferWise, and other startups.<br>\r\n<table class=\"custom-info\">\r\n  <tr>\r\n    <td><i class=\"fa fa-rss twitter-link\"><\/i> Blog<\/td>\r\n    <td><a href=\"http:\/\/bsideup.github.io\" target=\"_blank\" rel=\"noopener\">http:\/\/bsideup.github.io<\/a><\/td> \r\n  <\/tr>\r\n  <tr>\r\n    <td><i class=\"fa fa-building twitter-link\"><\/i> Company<\/td>\r\n    <td>Pivotal<\/td> \r\n  <\/tr>\r\n  <tr>\r\n    <td><i class=\"fa fa-twitter twitter-link\"><\/i> Twitter<\/td>\r\n    <td><a class=\"twitter-link\" href=\"https:\/\/www.twitter.com\/@bsideup\" target=\"_blank\" rel=\"noopener\">@bsideup<\/a><\/td> \r\n  <\/tr>\r\n<\/table>\n\t\t\t\t\t        <\/p>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\t\t\t\t\n\t\t\t    <div class=\"clear\">\n\t\t\t    <\/div>\n            <\/div>\n\t\t<\/div>[\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":7942,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46],"tags":[110,150,48,111,136],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integration testing with Docker and Testcontainers<\/title>\n<meta name=\"description\" content=\"Voxxed Days Minsk is a biggest Java Conference in Belarus and first Voxxed Days conference at the CIS region. Voxxed Days Minsk \u2013 is a hot combination of Java world known rock stars and jaw-dropping content for those truly inspired by the technology.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integration testing with Docker and Testcontainers\" \/>\n<meta property=\"og:description\" content=\"Voxxed Days Minsk is a biggest Java Conference in Belarus and first Voxxed Days conference at the CIS region. Voxxed Days Minsk \u2013 is a hot combination of Java world known rock stars and jaw-dropping content for those truly inspired by the technology.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html\" \/>\n<meta property=\"og:site_name\" content=\"Voxxed Days Minsk Developers Conference\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-04T18:07:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/voxxeddays.com\/minsk\/wp-content\/uploads\/sites\/42\/2020\/03\/Vox-oct-nov-20-cover1500x500.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"aliaksandrkazhukhouski\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/voxxeddays.com\/minsk\/#website\",\"url\":\"https:\/\/voxxeddays.com\/minsk\/\",\"name\":\"Voxxed Days Minsk Developers Conference\",\"description\":\"Welcome to Voxxed Days Minsk\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/voxxeddays.com\/minsk\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html#webpage\",\"url\":\"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html\",\"name\":\"Integration testing with Docker and Testcontainers\",\"isPartOf\":{\"@id\":\"https:\/\/voxxeddays.com\/minsk\/#website\"},\"datePublished\":\"2019-04-04T18:07:36+00:00\",\"dateModified\":\"2019-04-04T18:07:36+00:00\",\"author\":{\"@id\":\"https:\/\/voxxeddays.com\/minsk\/#\/schema\/person\/3c270bcaedccad1522ffd757b93ad87f\"},\"description\":\"Voxxed Days Minsk is a biggest Java Conference in Belarus and first Voxxed Days conference at the CIS region. Voxxed Days Minsk \\u2013 is a hot combination of Java world known rock stars and jaw-dropping content for those truly inspired by the technology.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/voxxeddays.com\/minsk\/integration-testing-with-docker-and-testcontainers.html\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/voxxeddays.com\/minsk\/#\/schema\/person\/3c270bcaedccad1522ffd757b93ad87f\",\"name\":\"aliaksandrkazhukhouski\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/voxxeddays.com\/minsk\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/823e2bec3b8033f074da9766158032f1?s=96&d=mm&r=g\",\"caption\":\"aliaksandrkazhukhouski\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/posts\/3838"}],"collection":[{"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/users\/7942"}],"replies":[{"embeddable":true,"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/comments?post=3838"}],"version-history":[{"count":0,"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/posts\/3838\/revisions"}],"wp:attachment":[{"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/media?parent=3838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/categories?post=3838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/voxxeddays.com\/minsk\/wp-json\/wp\/v2\/tags?post=3838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}