org.opentest4j.AssertionFailedError: expected: <1> but was: <0> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit ...
この記事の仲間です。 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 ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する