<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>agt</author_name>
  <author_url>https://blog.hatena.ne.jp/agt/</author_url>
  <blog_title>アガテナ</blog_title>
  <blog_url>https://agt.hatenadiary.org/</blog_url>
  <categories>
    <anon>XP</anon>
    <anon>DbUnit</anon>
  </categories>
  <description>今日はこれではまりました。 取得したデータや期待値の並び順が不定だとテストコードは書けません。 DatabaseConnection.createDataSetメソッドなどでは並び順が不定の状態で、データが返ります。 ITableをSortedTableクラスでラップすれば、並び替えたデータを取得できます。 IDataSet dataSet = getConnection().createDataSet(new String {&quot;TABLE_A&quot;}); // 並び替え前のテーブルデータ ITable table = dataSet.getTable(&quot;TABLE_A&quot;); // 並び順を指定。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fagt.hatenadiary.org%2Fentry%2F20040312%2Fp5&quot; title=&quot;DBUnit Testing Tips3 ITable型のデータをカラム名で並び替える方法 - アガテナ&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>2004-03-12 00:00:04</published>
  <title>DBUnit Testing Tips3 ITable型のデータをカラム名で並び替える方法</title>
  <type>rich</type>
  <url>https://agt.hatenadiary.org/entry/20040312/p5</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
