
hope.kola.contract.assertj.bridge.BigIntegerAssert Maven / Gradle / Ivy
package hope.kola.contract.assertj.bridge;
import com.squareup.javapoet.ClassName;
import hope.kola.contract.assertj.model.DynamicProperty;
import hope.kola.contract.assertj.model.PrimitiveType;
import java.math.BigInteger;
import org.assertj.core.data.Offset;
/** {@link org.assertj.core.api.AbstractBigIntegerAssert} */
public class BigIntegerAssert extends AssertThat {
@Override
public PrimitiveType primitiveType() {
return PrimitiveType.BIG_INTEGER;
}
@Override
public ClassName assertJClass() {
return ClassName.get("org.assertj.core.api", "AbstractBigIntegerAssert");
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isZero} */
public BigIntegerAssert isZero() {
segment("isZero");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isNotZero} */
public BigIntegerAssert isNotZero() {
segment("isNotZero");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isOne} */
public BigIntegerAssert isOne() {
segment("isOne");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isPositive} */
public BigIntegerAssert isPositive() {
segment("isPositive");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isNegative} */
public BigIntegerAssert isNegative() {
segment("isNegative");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isNotNegative} */
public BigIntegerAssert isNotNegative() {
segment("isNotNegative");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isNotPositive} */
public BigIntegerAssert isNotPositive() {
segment("isNotPositive");
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isCloseTo} */
public BigIntegerAssert isCloseTo(BigInteger expected, Offset offset) {
segment("isCloseTo")
.argument(DynamicProperty.newBigInteger(expected))
.argument(DynamicProperty.newOffset(offset));
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isNotCloseTo} */
public BigIntegerAssert isNotCloseTo(BigInteger expected, Offset offset) {
segment("isNotCloseTo")
.argument(DynamicProperty.newBigInteger(expected))
.argument(DynamicProperty.newOffset(offset));
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isBetween} */
public BigIntegerAssert isBetween(BigInteger start, BigInteger end) {
segment("isBetween")
.argument(DynamicProperty.newBigInteger(start))
.argument(DynamicProperty.newBigInteger(end));
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isStrictlyBetween} */
public BigIntegerAssert isStrictlyBetween(BigInteger start, BigInteger end) {
segment("isStrictlyBetween")
.argument(DynamicProperty.newBigInteger(start))
.argument(DynamicProperty.newBigInteger(end));
return this;
}
/** {@link org.assertj.core.api.AbstractBigIntegerAssert#isEqualTo} */
public BigIntegerAssert isEqualTo(String expected) {
segment("isEqualTo").argument(DynamicProperty.newString(expected));
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy