この記事の仲間です。 DBからぽんと取ったデータはBigInteger、こっちで比較しなきゃいけないデータはIntegerで困りましたね。 先に結論 assertEquals(BigInteger.valueOf(比べられるInteger), 比べるBigInteger); BigIntegerの方が桁数がでかいので、BigIntegerの方にあわせてあげる ...
In my blog post Are Static Imports Becoming Increasingly Accepted in Java?, I discussed the increasing use of static imports in Java to make code more fluent in certain contexts. Unit testing in Java ...