私はどのように機能するかを理解しようとしていますorg.mockito.AdditionalMatchers
が、失敗しました。このテストが失敗するのはなぜですか?
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import static org.mockito.AdditionalMatchers.*;
public class DemoTest {
@Test
public void testGreaterThan() throws Exception {
assertThat( 17
, is( gt( 10 ) )
);
}
}
出力は次のとおりです。
java.lang.AssertionError:
Expected: is <0>
got: <17>