摘要:
断言(Assertions) Junit JUnit为所有原始类型和对象以及(原始或对象的)数组提供了重载的断言方法。参数顺序是期望值,然后是实际值。可选地,第一个参数可以是失败时输出的String消息。有一个稍微不同的断言,assertThat它具有可选故障消息,实际值和Matcher对象的参数。 阅读全文
摘要:
assertEquals public static void assertEquals(long expected, long actual) Asserts that two longs are equal. If they are not, an AssertionError is throw 阅读全文