<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>b1a9id</author_name>
  <author_url>https://blog.hatena.ne.jp/b1a9id/</author_url>
  <blog_title>BullよりElk</blog_title>
  <blog_url>https://b1a9idps.com/</blog_url>
  <categories>
  </categories>
  <description>みなさんは、DBアクセスのテストはどう書いていますか？DBをモックにしていますか？実際にDBを用意してテストしていますか？ 私は、だいたいH2を用いてテストを書いています。H2を使っているとDDL問題に直面してしまいます。本番ではMySQLやPostgresを使っていると思うので、テストの為にDDLを用意しないといけません。 わざわざ用意するのめんどくさいとか、これって本当にプロダクトコードのテストになっているのか？とかの疑問を持っていました。 そこで、知り合ったのが今回紹介するTestContainersです。 TestContainersは、JUnitのテストをサポートするJavaのライブ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb1a9idps.com%2Fposts%2Ftest-containers&quot; title=&quot;TestContainers使ってみないか？ - BullよりElk&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-05 10:00:00</published>
  <title>TestContainers使ってみないか？</title>
  <type>rich</type>
  <url>https://b1a9idps.com/posts/test-containers</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
