com.flextrade.jfixture.specifications.InverseSpecification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfixture Show documentation
Show all versions of jfixture Show documentation
JFixture is an open source library based on the popular .NET library, AutoFixture
package com.flextrade.jfixture.specifications;
public class InverseSpecification implements Specification {
private final Specification inner;
public InverseSpecification(Specification inner) {
this.inner = inner;
}
@Override
public boolean isSatisfiedBy(Object request) {
return !this.inner.isSatisfiedBy(request);
}
}