All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hope.kola.contract.assertj.bridge.ByteAssert Maven / Gradle / Ivy

There is a newer version: 1.1.2-RELEASE
Show newest version
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 org.assertj.core.data.Offset;

/** {@link org.assertj.core.api.AbstractByteAssert} */
public class ByteAssert extends AssertThat {

  @Override
  public PrimitiveType primitiveType() {
    return PrimitiveType.BYTE;
  }

  @Override
  public ClassName assertJClass() {
    return ClassName.get("org.assertj.core.api", "AbstractByteAssert");
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isEqualTo} */
  public ByteAssert isEqualTo(Byte expected) {
    segment("isEqualTo").argument(DynamicProperty.newByte(expected));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNotEqualTo} */
  public ByteAssert isNotEqualTo(Byte other) {
    segment("isNotEqualTo").argument(DynamicProperty.newByte(other));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isZero} */
  public ByteAssert isZero() {
    segment("isZero");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNotZero} */
  public ByteAssert isNotZero() {
    segment("isNotZero");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isOne} */
  public ByteAssert isOne() {
    segment("isOne");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isPositive} */
  public ByteAssert isPositive() {
    segment("isPositive");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNegative} */
  public ByteAssert isNegative() {
    segment("isNegative");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNotNegative} */
  public ByteAssert isNotNegative() {
    segment("isNotNegative");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNotPositive} */
  public ByteAssert isNotPositive() {
    segment("isNotPositive");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isEven} */
  public ByteAssert isEven() {
    segment("isEven");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isOdd} */
  public ByteAssert isOdd() {
    segment("isOdd");
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isLessThan} */
  public ByteAssert isLessThan(Byte other) {
    segment("isLessThan").argument(DynamicProperty.newByte(other));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isLessThanOrEqualTo} */
  public ByteAssert isLessThanOrEqualTo(Byte other) {
    segment("isLessThanOrEqualTo").argument(DynamicProperty.newByte(other));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isGreaterThan} */
  public ByteAssert isGreaterThan(Byte other) {
    segment("isGreaterThan").argument(DynamicProperty.newByte(other));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isGreaterThanOrEqualTo} */
  public ByteAssert isGreaterThanOrEqualTo(Byte other) {
    segment("isGreaterThanOrEqualTo").argument(DynamicProperty.newByte(other));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isBetween} */
  public ByteAssert isBetween(Byte start, Byte end) {
    segment("isBetween")
        .argument(DynamicProperty.newByte(start))
        .argument(DynamicProperty.newByte(end));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isStrictlyBetween} */
  public ByteAssert isStrictlyBetween(Byte start, Byte end) {
    segment("isStrictlyBetween")
        .argument(DynamicProperty.newByte(start))
        .argument(DynamicProperty.newByte(end));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isCloseTo} */
  public ByteAssert isCloseTo(Byte expected, Offset offset) {
    segment("isCloseTo")
        .argument(DynamicProperty.newByte(expected))
        .argument(DynamicProperty.newOffset(offset));
    return this;
  }

  /** {@link org.assertj.core.api.AbstractByteAssert#isNotCloseTo} */
  public ByteAssert isNotCloseTo(Byte expected, Offset offset) {
    segment("isNotCloseTo")
        .argument(DynamicProperty.newByte(expected))
        .argument(DynamicProperty.newOffset(offset));
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy