
com.foursoft.vecmodel.vec120.AbstractVecDefaultDimensionSpecificationAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vec120-assertions Show documentation
Show all versions of vec120-assertions Show documentation
The Assertions Library for VEC version 1.2.0.
package com.foursoft.vecmodel.vec120;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecDefaultDimensionSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecDefaultDimensionSpecificationAssert, A extends VecDefaultDimensionSpecification> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecDefaultDimensionSpecificationAssert}
to make assertions on actual VecDefaultDimensionSpecification.
* @param actual the VecDefaultDimensionSpecification we want to make assertions on.
*/
protected AbstractVecDefaultDimensionSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecDefaultDimensionSpecification's defaultDimension is equal to the given one.
* @param defaultDimension the given defaultDimension to compare the actual VecDefaultDimensionSpecification's defaultDimension to.
* @return this assertion object.
* @throws AssertionError - if the actual VecDefaultDimensionSpecification's defaultDimension is not equal to the given one.
*/
public S hasDefaultDimension(VecDefaultDimension defaultDimension) {
// check that actual VecDefaultDimensionSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting defaultDimension of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecDefaultDimension actualDefaultDimension = actual.getDefaultDimension();
if (!Objects.areEqual(actualDefaultDimension, defaultDimension)) {
failWithMessage(assertjErrorMessage, actual, defaultDimension, actualDefaultDimension);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy