JUnit4でも使えるマッチングライブラリ「hamcrest」。 ただ、hamcrestはjarが分かれているから注意する。 hamcrest-core-1.1.jar hamcrest-library-1.1.jar JUnit4.4に同梱されているのはcoreの方だけ。 libraryはsugerの定義が多いけど、機能的な追加もあるっぽい。 libraryを入れていれば、マッチングはすべてMatchersクラスから利用できる。 たとえばequalTo()メソッド。 public class Matchers { public static <T> org.hamcrest.Matcher<T> equalTo(T operand) { return org.hamcrest.core.IsEqual.equalTo(operand); } } coreのIsEqualクラスに委譲してい
This tutorial explains how to use the iBATOR eclipse plugin 1.2.0 for iBATIS. iBATOR is a code generator for iBATIS. iBATOR will introspect one or more database table and will generate iBATIS artifacts that can be used to access the tables. iBATOR will generate the following artifacts : - SqlMapXML files (XML files used by iBATIS to map objects and data). - Java model classes (Match the fields of
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く