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

项目:russian-requisites-validator    文件:InnConstraintValidatorTest.java   
private AbstractBooleanAssert<?> assertValue(CheckMode mode, CharSequence value) {
    return assertThat(validator(mode).isValid(value, context()))
            .describedAs("%s(%s)"
                    , mode.toString()
                    , value == null ? "null" : value.toString()
            );
}
项目:russian-requisites-validator    文件:OgrnConstraintValidatorTest.java   
private AbstractBooleanAssert<?> assertValue(CheckMode mode, CharSequence value) {
    return assertThat(validator(mode).isValid(value, context()))
            .describedAs("%s(%s)"
                    , mode.toString()
                    , value == null ? "null" : value.toString()
            );
}
项目:ArchUnit    文件:DependencyTest.java   
private List<AbstractBooleanAssert<?>> dependencyMatches(Class<?> originClass, Class<?> targetClass) {
    return ImmutableList.of(
            assertThat(dependency(originClass, targetClass).apply(input))
                    .as("Dependency matches '%s.class' -> '%s.class'", originClass.getSimpleName(), targetClass.getSimpleName()),
            assertThat(dependency(originClass.getName(), targetClass.getName()).apply(input))
                    .as("Dependency matches '%s.class' -> '%s.class'", originClass.getSimpleName(), targetClass.getSimpleName()),
            assertThat(dependency(
                    HasName.Predicates.name(originClass.getName()),
                    HasName.Predicates.name(targetClass.getName())).apply(input))
                    .as("Dependency matches '%s.class' -> '%s.class'", originClass.getSimpleName(), targetClass.getSimpleName()));
}
项目:ArchUnit    文件:DependencyTest.java   
private List<AbstractBooleanAssert<?>> dependencyMatchesOrigin(Class<?> originClass) {
    return ImmutableList.of(
            assertThat(dependencyOrigin(originClass).apply(input))
                    .as("Dependency origin matches '%s.class'", originClass.getSimpleName()),
            assertThat(dependencyOrigin(originClass.getName()).apply(input))
                    .as("Dependency origin matches '%s.class'", originClass.getSimpleName()),
            assertThat(dependencyOrigin(HasName.Predicates.name(originClass.getName())).apply(input))
                    .as("Dependency origin matches '%s.class'", originClass.getSimpleName()));
}
项目:ArchUnit    文件:DependencyTest.java   
private List<AbstractBooleanAssert<?>> dependencyMatchesTarget(Class<?> targetClass) {
    return ImmutableList.of(
            assertThat(dependencyTarget(targetClass).apply(input))
                    .as("Dependency target matches '%s.class'", targetClass.getSimpleName()),
            assertThat(dependencyTarget(targetClass.getName()).apply(input))
                    .as("Dependency target matches '%s.class'", targetClass.getSimpleName()),
            assertThat(dependencyTarget(HasName.Predicates.name(targetClass.getName())).apply(input))
                    .as("Dependency target matches '%s.class'", targetClass.getSimpleName()));
}
项目:russian-requisites-validator    文件:InnConstraintValidatorTest.java   
private AbstractBooleanAssert<?> assertValue(CharSequence value) {
    return assertValue(CheckMode.ANY, value);
}
项目:russian-requisites-validator    文件:KppConstraintValidatorTest.java   
private AbstractBooleanAssert<?> assertValue(CharSequence value) {
    return assertThat(validator().isValid(value, context()))
            .describedAs("%s"
                    , value == null ? "null" : value.toString()
            );
}
项目:russian-requisites-validator    文件:OgrnConstraintValidatorTest.java   
private AbstractBooleanAssert<?> assertValue(CharSequence value) {
    return assertValue(CheckMode.ANY, value);
}
项目:ArchUnit    文件:JavaClassTest.java   
public void isTrue() {
    for (AbstractBooleanAssert<?> assertion : assignableAssertion) {
        assertion.isTrue();
    }
}
项目:ArchUnit    文件:JavaClassTest.java   
public void isFalse() {
    for (AbstractBooleanAssert<?> assertion : assignableAssertion) {
        assertion.isFalse();
    }
}
项目:ArchUnit    文件:HasNameTest.java   
private AbstractBooleanAssert assertMatches(String input, String regex) {
    return assertThat(nameMatching(regex).apply(newHasName(input)))
            .as(input + " =~ " + regex);
}
项目:ArchUnit    文件:DependencyTest.java   
DependencyAssertion matches(Class<?> originClass, Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyAssert : dependencyMatches(originClass, targetClass)) {
        dependencyAssert.isTrue();
    }
    return this;
}
项目:ArchUnit    文件:DependencyTest.java   
DependencyAssertion doesntMatch(Class<?> originClass, Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyAssert : dependencyMatches(originClass, targetClass)) {
        dependencyAssert.isFalse();
    }
    return this;
}
项目:ArchUnit    文件:DependencyTest.java   
DependencyAssertion matchesOrigin(Class<?> originClass) {
    for (AbstractBooleanAssert<?> dependencyOriginAssert : dependencyMatchesOrigin(originClass)) {
        dependencyOriginAssert.isTrue();
    }
    return this;
}
项目:ArchUnit    文件:DependencyTest.java   
void doesntMatchOrigin(Class<?> originClass) {
    for (AbstractBooleanAssert<?> dependencyOriginAssert : dependencyMatchesOrigin(originClass)) {
        dependencyOriginAssert.isFalse();
    }
}
项目:ArchUnit    文件:DependencyTest.java   
DependencyAssertion matchesTarget(Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyTargetAssert : dependencyMatchesTarget(targetClass)) {
        dependencyTargetAssert.isTrue();
    }
    return this;
}
项目:ArchUnit    文件:DependencyTest.java   
void doesntMatchTarget(Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyTargetAssert : dependencyMatchesTarget(targetClass)) {
        dependencyTargetAssert.isFalse();
    }
}
项目:test-as-you-think    文件:TestAsYouThink.java   
public static AbstractBooleanAssert<?> resultOf(CheckedBooleanSupplier whenStep) {
    return assertThat(result(whenStep));
}
项目:strategy-spring-security-acl    文件:GrantEvaluatorTest.java   
private AbstractBooleanAssert<?> assertWeak(Object domainObject) {
  return assertThat(permissionEvaluator.hasPermission(authentication, "fake id",
      domainObject.getClass().getName(), "fake permission"));
}
项目:strategy-spring-security-acl    文件:GrantEvaluatorTest.java   
private AbstractBooleanAssert<?> assertStrong(Object domainObject) {
  return assertThat(
      permissionEvaluator.hasPermission(authentication, domainObject, "fake permission"));
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Boolean)}
 */
default AbstractBooleanAssert<?> then(Boolean actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Boolean)}
 */
default AbstractBooleanAssert<?> and(Boolean actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(boolean)}
 */
default AbstractBooleanAssert<?> then(boolean actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(boolean)}
 */
default AbstractBooleanAssert<?> and(boolean actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:MPL    文件:ChainLinkAssert.java   
public AbstractBooleanAssert<?> internal() {
  isNotNull();
  return assertThat(actual.getGeneratedBy() == MATERIALIZER).as(description("internal"));
}
项目:MPL    文件:ChainLinkIterableAssert.java   
public AbstractBooleanAssert<?> internal() {
  return assertThat(actual.iterator().next()).internal();
}
项目:MPL    文件:CommandAssert.java   
public AbstractBooleanAssert<?> conditional() {
  isNotNull();
  return assertThat(actual.isConditional()).as(description("conditional"));
}
项目:MPL    文件:CommandAssert.java   
public AbstractBooleanAssert<?> needsRedstone() {
  isNotNull();
  return assertThat(actual.getNeedsRedstone()).as(description("needsRedstone"));
}
项目:javalang-compiler    文件:SymbolDataAssert.java   
public AbstractBooleanAssert<?> isTemplateVariable() {
    return Assertions.assertThat(actual.isTemplateVariable());
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(boolean)}
 */
default AbstractBooleanAssert<?> assertThat(boolean actual) {
    return Assertions.assertThat(actual);
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(java.lang.Boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(java.lang.Boolean)}
 */
default AbstractBooleanAssert<?> assertThat(Boolean actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(boolean)}
 */
default AbstractBooleanAssert<?> assertThat(boolean actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(java.lang.Boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(java.lang.Boolean)}
 */
default AbstractBooleanAssert<?> assertThat(Boolean actual) {
    return Assertions.assertThat(actual);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:JsonContentAssert.java   
/**
 * Extract the boolean value at the given JSON path for further object assertions.
 * @param expression the {@link JsonPath} expression
 * @param args arguments to parameterize the {@code JsonPath} expression with, using
 * formatting specifiers defined in {@link String#format(String, Object...)}
 * @return a new assertion object whose object under test is the extracted item
 * @throws AssertionError if the path is not valid or does not result in a boolean
 */
public AbstractBooleanAssert<?> extractingJsonPathBooleanValue(
        CharSequence expression, Object... args) {
    return Assertions.assertThat(
            extractingJsonPathValue(expression, args, Boolean.class, "a boolean"));
}
项目:spring-boot-concourse    文件:JsonContentAssert.java   
/**
 * Extract the boolean value at the given JSON path for further object assertions.
 * @param expression the {@link JsonPath} expression
 * @param args arguments to parameterize the {@code JsonPath} expression with, using
 * formatting specifiers defined in {@link String#format(String, Object...)}
 * @return a new assertion object whose object under test is the extracted item
 * @throws AssertionError if the path is not valid or does not result in a boolean
 */
public AbstractBooleanAssert<?> extractingJsonPathBooleanValue(
        CharSequence expression, Object... args) {
    return Assertions.assertThat(
            extractingJsonPathValue(expression, args, Boolean.class, "a boolean"));
}
项目:interface-it    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(boolean)}
 */
default AbstractBooleanAssert<?> assertThat(boolean actual) {
    return Assertions.assertThat(actual);
}
项目:interface-it    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.Assertions.assertThat(java.lang.Boolean)
 * {@link org.assertj.core.api.Assertions#assertThat(java.lang.Boolean)}
 */
default AbstractBooleanAssert<?> assertThat(Boolean actual) {
    return Assertions.assertThat(actual);
}
项目:ehcache3    文件:AbstractCalculationTest.java   
/**
 * A little wrapper over {@code assertThat} that just mention that this what we expect from the test. So if the
 * expectation fails, it's probably the test that is wrong, not the implementation.
 *
 * @param actual actual value
 * @return an AssertJ assertion
 */
protected static AbstractBooleanAssert<?> expect(boolean actual) {
  return assertThat(actual);
}