Java 类org.assertj.core.api.BooleanAssert 实例源码

项目:assertj-assertions-generator    文件:ClassUtilTest.java   
@Test
public void can_properly_compute_Assert_types() throws Exception {
  TypeToken<ClassUtilTest> thisType = TypeToken.of(ClassUtilTest.class);

  assertThat(getAssertType(thisType, thisType.getRawType().getPackage().getName()))
      .as("resolves non-built-in type correctly")
      .isEqualTo("ClassUtilTestAssert");

  TypeToken<Boolean> primitive = TypeToken.of(boolean.class);
  assertThat(getAssertType(primitive, thisType.getRawType().getPackage().getName()))
      .as("resolves primitive correctly")
      .isEqualTo(BooleanAssert.class.getName());

  TypeToken<Boolean> wrapper = TypeToken.of(Boolean.class);
  assertThat(getAssertType(wrapper, thisType.getRawType().getPackage().getName()))
      .as("resolves primitive wrapper correctly")
      .isEqualTo(BooleanAssert.class.getName());

  assertThat(getAssertType(wrapper, BooleanAssert.class.getPackage().getName()))
      .as("resolves package correctly for built-in package")
      .isEqualTo(BooleanAssert.class.getSimpleName());
}
项目:assertj-core    文件:BooleanAssert_isEqualTo_boolean_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  return assertions.isEqualTo(false);
}
项目:assertj-core    文件:BooleanAssert_isTrue_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  return assertions.isTrue();
}
项目:assertj-core    文件:BooleanAssert_isFalse_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  return assertions.isFalse();
}
项目:assertj-core    文件:BooleanAssert_isNotEqualTo_boolean_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  return assertions.isNotEqualTo(false);
}
项目:assertj-core    文件:BooleanAssert_usingComparator_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  // Not used in this test
  return null;
}
项目:assertj-core    文件:BooleanAssert_usingDefaultComparator_Test.java   
@Override
protected BooleanAssert invoke_api_method() {
  return assertions.usingDefaultComparator();
}