assertequals

assertequalsassertequals
  1. To do this , you will use the get methods on the input and output data object and use the JUnit assertEquals () .

    为此,您将使用输入和输出数据对象上的get方法,并使用JUnitassertEquals()。

  2. For example , instead of assertEquals ( expected , actual ), you can write assertEquals ( actual , is ( expected )), which reads more like a real sentence .

    例如,不必编写assertEquals(expected,actual),您可以编写assertEquals(actual,is(expected)),这段代码读起来更像是一个句子。