Java Code Examples for org.assertj.core.api.AbstractBooleanAssert#isTrue()

The following examples show how to use org.assertj.core.api.AbstractBooleanAssert#isTrue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DependencyAssertion.java    From ArchUnit with Apache License 2.0 4 votes vote down vote up
public DependencyAssertion matches(Class<?> originClass, Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyAssert : dependencyMatches(originClass, targetClass)) {
        dependencyAssert.isTrue();
    }
    return this;
}
 
Example 2
Source File: DependencyAssertion.java    From ArchUnit with Apache License 2.0 4 votes vote down vote up
public DependencyAssertion matchesOrigin(Class<?> originClass) {
    for (AbstractBooleanAssert<?> dependencyOriginAssert : dependencyMatchesOrigin(originClass)) {
        dependencyOriginAssert.isTrue();
    }
    return this;
}
 
Example 3
Source File: DependencyAssertion.java    From ArchUnit with Apache License 2.0 4 votes vote down vote up
public DependencyAssertion matchesTarget(Class<?> targetClass) {
    for (AbstractBooleanAssert<?> dependencyTargetAssert : dependencyMatchesTarget(targetClass)) {
        dependencyTargetAssert.isTrue();
    }
    return this;
}
 
Example 4
Source File: JavaClassTest.java    From ArchUnit with Apache License 2.0 4 votes vote down vote up
public void isTrue() {
    for (AbstractBooleanAssert<?> assertion : assignableAssertion) {
        assertion.isTrue();
    }
}
 
Example 5
Source File: ThrowsClauseTest.java    From ArchUnit with Apache License 2.0 4 votes vote down vote up
private void assertAllTrue(Iterable<? extends AbstractBooleanAssert<?>> asserts) {
    for (AbstractBooleanAssert<?> anAssert : asserts) {
        anAssert.isTrue();
    }
}