本文整理汇总了Java中org.assertj.core.api.AbstractBooleanAssert类的典型用法代码示例。如果您正苦于以下问题:Java AbstractBooleanAssert类的具体用法?Java AbstractBooleanAssert怎么用?Java AbstractBooleanAssert使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractBooleanAssert类属于org.assertj.core.api包,在下文中一共展示了AbstractBooleanAssert类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: assertValue
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
private AbstractBooleanAssert<?> assertValue(CheckMode mode, CharSequence value) {
return assertThat(validator(mode).isValid(value, context()))
.describedAs("%s(%s)"
, mode.toString()
, value == null ? "null" : value.toString()
);
}
开发者ID:valery1707,项目名称:russian-requisites-validator,代码行数:8,代码来源:InnConstraintValidatorTest.java
示例2: dependencyMatches
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
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()));
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:12,代码来源:DependencyTest.java
示例3: dependencyMatchesOrigin
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
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()));
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:10,代码来源:DependencyTest.java
示例4: dependencyMatchesTarget
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
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()));
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:10,代码来源:DependencyTest.java
示例5: assertValue
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
private AbstractBooleanAssert<?> assertValue(CharSequence value) {
return assertThat(validator().isValid(value, context()))
.describedAs("%s"
, value == null ? "null" : value.toString()
);
}
开发者ID:valery1707,项目名称:russian-requisites-validator,代码行数:7,代码来源:KppConstraintValidatorTest.java
示例6: isTrue
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
public void isTrue() {
for (AbstractBooleanAssert<?> assertion : assignableAssertion) {
assertion.isTrue();
}
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:6,代码来源:JavaClassTest.java
示例7: isFalse
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
public void isFalse() {
for (AbstractBooleanAssert<?> assertion : assignableAssertion) {
assertion.isFalse();
}
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:6,代码来源:JavaClassTest.java
示例8: assertMatches
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
private AbstractBooleanAssert assertMatches(String input, String regex) {
return assertThat(nameMatching(regex).apply(newHasName(input)))
.as(input + " =~ " + regex);
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:5,代码来源:HasNameTest.java
示例9: matches
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
DependencyAssertion matches(Class<?> originClass, Class<?> targetClass) {
for (AbstractBooleanAssert<?> dependencyAssert : dependencyMatches(originClass, targetClass)) {
dependencyAssert.isTrue();
}
return this;
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:7,代码来源:DependencyTest.java
示例10: doesntMatch
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
DependencyAssertion doesntMatch(Class<?> originClass, Class<?> targetClass) {
for (AbstractBooleanAssert<?> dependencyAssert : dependencyMatches(originClass, targetClass)) {
dependencyAssert.isFalse();
}
return this;
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:7,代码来源:DependencyTest.java
示例11: matchesOrigin
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
DependencyAssertion matchesOrigin(Class<?> originClass) {
for (AbstractBooleanAssert<?> dependencyOriginAssert : dependencyMatchesOrigin(originClass)) {
dependencyOriginAssert.isTrue();
}
return this;
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:7,代码来源:DependencyTest.java
示例12: doesntMatchOrigin
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
void doesntMatchOrigin(Class<?> originClass) {
for (AbstractBooleanAssert<?> dependencyOriginAssert : dependencyMatchesOrigin(originClass)) {
dependencyOriginAssert.isFalse();
}
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:6,代码来源:DependencyTest.java
示例13: matchesTarget
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
DependencyAssertion matchesTarget(Class<?> targetClass) {
for (AbstractBooleanAssert<?> dependencyTargetAssert : dependencyMatchesTarget(targetClass)) {
dependencyTargetAssert.isTrue();
}
return this;
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:7,代码来源:DependencyTest.java
示例14: doesntMatchTarget
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
void doesntMatchTarget(Class<?> targetClass) {
for (AbstractBooleanAssert<?> dependencyTargetAssert : dependencyMatchesTarget(targetClass)) {
dependencyTargetAssert.isFalse();
}
}
开发者ID:TNG,项目名称:ArchUnit,代码行数:6,代码来源:DependencyTest.java
示例15: resultOf
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
public static AbstractBooleanAssert<?> resultOf(CheckedBooleanSupplier whenStep) {
return assertThat(result(whenStep));
}
开发者ID:xapn,项目名称:test-as-you-think,代码行数:4,代码来源:TestAsYouThink.java
示例16: assertWeak
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
private AbstractBooleanAssert<?> assertWeak(Object domainObject) {
return assertThat(permissionEvaluator.hasPermission(authentication, "fake id",
domainObject.getClass().getName(), "fake permission"));
}
开发者ID:lordlothar99,项目名称:strategy-spring-security-acl,代码行数:5,代码来源:GrantEvaluatorTest.java
示例17: assertStrong
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
private AbstractBooleanAssert<?> assertStrong(Object domainObject) {
return assertThat(
permissionEvaluator.hasPermission(authentication, domainObject, "fake permission"));
}
开发者ID:lordlothar99,项目名称:strategy-spring-security-acl,代码行数:5,代码来源:GrantEvaluatorTest.java
示例18: then
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
/**
* Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Boolean)}
*/
default AbstractBooleanAssert<?> then(Boolean actual) {
fluentBdd().verification.recordThen(this);
return DELEGATE.assertThat(actual);
}
开发者ID:theangrydev,项目名称:fluent-bdd,代码行数:8,代码来源:WithFluentAssertJ.java
示例19: and
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
/**
* Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Boolean)}
*/
default AbstractBooleanAssert<?> and(Boolean actual) {
fluentBdd().verification.recordThen(this);
return DELEGATE.assertThat(actual);
}
开发者ID:theangrydev,项目名称:fluent-bdd,代码行数:8,代码来源:WithFluentAssertJ.java
示例20: internal
import org.assertj.core.api.AbstractBooleanAssert; //导入依赖的package包/类
public AbstractBooleanAssert<?> internal() {
isNotNull();
return assertThat(actual.getGeneratedBy() == MATERIALIZER).as(description("internal"));
}
开发者ID:Adrodoc55,项目名称:MPL,代码行数:5,代码来源:ChainLinkAssert.java
注:本文中的org.assertj.core.api.AbstractBooleanAssert类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论