コード例 #1
0
  @Test
  public void verifyInjections() {
    assertThat(cut).isNotNull();
    assertThat(hello).isNotNull().isSameAs(cut.getHello());

    MockUtil util = new MockUtil();
    assertThat(util.isMock(hello)).isFalse();
  }
コード例 #2
0
 private String mockName(Object mock) {
   return MockUtil.getMockName(mock).toString();
 }