<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yyama1556</author_name>
  <author_url>https://blog.hatena.ne.jp/yyama1556/</author_url>
  <blog_title>山崎屋の技術メモ</blog_title>
  <blog_url>https://www.shookuro.com/</blog_url>
  <categories>
    <anon>spring boot</anon>
    <anon>JUnit</anon>
  </categories>
  <description>前回 SpringBoot で作成した DB 操作クラスに対し DbUnit を使って簡単なテスト実施方法を紹介しました。 www.shookuro.com 前回の記事にも書きましたが、この自動テストの実行後にはテーブルのデータがテストで使用したデータに変わってしまいます。ちょっと困りますよね。今回の記事では SpringBoot で DbUnit を使い、テスト完了時にテーブルデータをテスト実行前の状態に戻す方法について書いていきたいと思います。DBバージョン は postgresql 9.5。SpringBootは 2.1.2。DBUnit は 2.6.0 です。 結論 テストのときは D…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shookuro.com%2Fentry%2F2019%2F01%2F26%2F182547&quot; title=&quot;【DbUnit】テスト完了時にテーブルデータを元に戻す方法 - 山崎屋の技術メモ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yyama1556/20190126/20190126180832.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-26 18:25:47</published>
  <title>【DbUnit】テスト完了時にテーブルデータを元に戻す方法</title>
  <type>rich</type>
  <url>https://www.shookuro.com/entry/2019/01/26/182547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
