
com.foursoft.vecmodel.vec120.AbstractVecTransformation3DAssert Maven / Gradle / Ivy
Show all versions of vec120-assertions Show documentation
package com.foursoft.vecmodel.vec120;
import org.assertj.core.api.Assertions;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecTransformation3D} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTransformation3DAssert, A extends VecTransformation3D> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecTransformation3DAssert}
to make assertions on actual VecTransformation3D.
* @param actual the VecTransformation3D we want to make assertions on.
*/
protected AbstractVecTransformation3DAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecTransformation3D's a11 is equal to the given one.
* @param a11 the given a11 to compare the actual VecTransformation3D's a11 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a11 is not equal to the given one.
*/
public S hasA11(double a11) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a11 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a11
double actualA11 = actual.getA11();
if (actualA11 != a11) {
failWithMessage(assertjErrorMessage, actual, a11, actualA11);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a11 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a11 the value to compare the actual VecTransformation3D's a11 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a11 is not close enough to the given value.
*/
public S hasA11CloseTo(double a11, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA11 = actual.getA11();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a11:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA11, a11, assertjOffset, Math.abs(a11 - actualA11));
// check
Assertions.assertThat(actualA11).overridingErrorMessage(assertjErrorMessage).isCloseTo(a11, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a12 is equal to the given one.
* @param a12 the given a12 to compare the actual VecTransformation3D's a12 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a12 is not equal to the given one.
*/
public S hasA12(double a12) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a12 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a12
double actualA12 = actual.getA12();
if (actualA12 != a12) {
failWithMessage(assertjErrorMessage, actual, a12, actualA12);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a12 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a12 the value to compare the actual VecTransformation3D's a12 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a12 is not close enough to the given value.
*/
public S hasA12CloseTo(double a12, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA12 = actual.getA12();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a12:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA12, a12, assertjOffset, Math.abs(a12 - actualA12));
// check
Assertions.assertThat(actualA12).overridingErrorMessage(assertjErrorMessage).isCloseTo(a12, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a13 is equal to the given one.
* @param a13 the given a13 to compare the actual VecTransformation3D's a13 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a13 is not equal to the given one.
*/
public S hasA13(double a13) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a13 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a13
double actualA13 = actual.getA13();
if (actualA13 != a13) {
failWithMessage(assertjErrorMessage, actual, a13, actualA13);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a13 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a13 the value to compare the actual VecTransformation3D's a13 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a13 is not close enough to the given value.
*/
public S hasA13CloseTo(double a13, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA13 = actual.getA13();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a13:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA13, a13, assertjOffset, Math.abs(a13 - actualA13));
// check
Assertions.assertThat(actualA13).overridingErrorMessage(assertjErrorMessage).isCloseTo(a13, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a21 is equal to the given one.
* @param a21 the given a21 to compare the actual VecTransformation3D's a21 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a21 is not equal to the given one.
*/
public S hasA21(double a21) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a21 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a21
double actualA21 = actual.getA21();
if (actualA21 != a21) {
failWithMessage(assertjErrorMessage, actual, a21, actualA21);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a21 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a21 the value to compare the actual VecTransformation3D's a21 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a21 is not close enough to the given value.
*/
public S hasA21CloseTo(double a21, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA21 = actual.getA21();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a21:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA21, a21, assertjOffset, Math.abs(a21 - actualA21));
// check
Assertions.assertThat(actualA21).overridingErrorMessage(assertjErrorMessage).isCloseTo(a21, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a22 is equal to the given one.
* @param a22 the given a22 to compare the actual VecTransformation3D's a22 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a22 is not equal to the given one.
*/
public S hasA22(double a22) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a22 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a22
double actualA22 = actual.getA22();
if (actualA22 != a22) {
failWithMessage(assertjErrorMessage, actual, a22, actualA22);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a22 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a22 the value to compare the actual VecTransformation3D's a22 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a22 is not close enough to the given value.
*/
public S hasA22CloseTo(double a22, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA22 = actual.getA22();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a22:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA22, a22, assertjOffset, Math.abs(a22 - actualA22));
// check
Assertions.assertThat(actualA22).overridingErrorMessage(assertjErrorMessage).isCloseTo(a22, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a23 is equal to the given one.
* @param a23 the given a23 to compare the actual VecTransformation3D's a23 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a23 is not equal to the given one.
*/
public S hasA23(double a23) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a23 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a23
double actualA23 = actual.getA23();
if (actualA23 != a23) {
failWithMessage(assertjErrorMessage, actual, a23, actualA23);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a23 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a23 the value to compare the actual VecTransformation3D's a23 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a23 is not close enough to the given value.
*/
public S hasA23CloseTo(double a23, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA23 = actual.getA23();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a23:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA23, a23, assertjOffset, Math.abs(a23 - actualA23));
// check
Assertions.assertThat(actualA23).overridingErrorMessage(assertjErrorMessage).isCloseTo(a23, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a31 is equal to the given one.
* @param a31 the given a31 to compare the actual VecTransformation3D's a31 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a31 is not equal to the given one.
*/
public S hasA31(double a31) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a31 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a31
double actualA31 = actual.getA31();
if (actualA31 != a31) {
failWithMessage(assertjErrorMessage, actual, a31, actualA31);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a31 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a31 the value to compare the actual VecTransformation3D's a31 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a31 is not close enough to the given value.
*/
public S hasA31CloseTo(double a31, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA31 = actual.getA31();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a31:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA31, a31, assertjOffset, Math.abs(a31 - actualA31));
// check
Assertions.assertThat(actualA31).overridingErrorMessage(assertjErrorMessage).isCloseTo(a31, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a32 is equal to the given one.
* @param a32 the given a32 to compare the actual VecTransformation3D's a32 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a32 is not equal to the given one.
*/
public S hasA32(double a32) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a32 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a32
double actualA32 = actual.getA32();
if (actualA32 != a32) {
failWithMessage(assertjErrorMessage, actual, a32, actualA32);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a32 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a32 the value to compare the actual VecTransformation3D's a32 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a32 is not close enough to the given value.
*/
public S hasA32CloseTo(double a32, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA32 = actual.getA32();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a32:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA32, a32, assertjOffset, Math.abs(a32 - actualA32));
// check
Assertions.assertThat(actualA32).overridingErrorMessage(assertjErrorMessage).isCloseTo(a32, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a33 is equal to the given one.
* @param a33 the given a33 to compare the actual VecTransformation3D's a33 to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a33 is not equal to the given one.
*/
public S hasA33(double a33) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting a33 of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// check value for a33
double actualA33 = actual.getA33();
if (actualA33 != a33) {
failWithMessage(assertjErrorMessage, actual, a33, actualA33);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's a33 is close to the given value by less than the given offset.
*
* If difference is equal to the offset value, assertion is considered successful.
* @param a33 the value to compare the actual VecTransformation3D's a33 to.
* @param assertjOffset the given offset.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's a33 is not close enough to the given value.
*/
public S hasA33CloseTo(double a33, double assertjOffset) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
double actualA33 = actual.getA33();
// overrides the default error message with a more explicit one
String assertjErrorMessage = String.format("\nExpecting a33:\n <%s>\nto be close to:\n <%s>\nby less than <%s> but difference was <%s>",
actualA33, a33, assertjOffset, Math.abs(a33 - actualA33));
// check
Assertions.assertThat(actualA33).overridingErrorMessage(assertjErrorMessage).isCloseTo(a33, Assertions.within(assertjOffset));
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's origin is equal to the given one.
* @param origin the given origin to compare the actual VecTransformation3D's origin to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's origin is not equal to the given one.
*/
public S hasOrigin(VecCartesianPoint3D origin) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting origin of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCartesianPoint3D actualOrigin = actual.getOrigin();
if (!Objects.areEqual(actualOrigin, origin)) {
failWithMessage(assertjErrorMessage, actual, origin, actualOrigin);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's parentBuildingBlockPositioning3D is equal to the given one.
* @param parentBuildingBlockPositioning3D the given parentBuildingBlockPositioning3D to compare the actual VecTransformation3D's parentBuildingBlockPositioning3D to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's parentBuildingBlockPositioning3D is not equal to the given one.
*/
public S hasParentBuildingBlockPositioning3D(VecBuildingBlockPositioning3D parentBuildingBlockPositioning3D) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentBuildingBlockPositioning3D of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecBuildingBlockPositioning3D actualParentBuildingBlockPositioning3D = actual.getParentBuildingBlockPositioning3D();
if (!Objects.areEqual(actualParentBuildingBlockPositioning3D, parentBuildingBlockPositioning3D)) {
failWithMessage(assertjErrorMessage, actual, parentBuildingBlockPositioning3D, actualParentBuildingBlockPositioning3D);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's parentLocalGeometrySpecification is equal to the given one.
* @param parentLocalGeometrySpecification the given parentLocalGeometrySpecification to compare the actual VecTransformation3D's parentLocalGeometrySpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's parentLocalGeometrySpecification is not equal to the given one.
*/
public S hasParentLocalGeometrySpecification(VecLocalGeometrySpecification parentLocalGeometrySpecification) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentLocalGeometrySpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecLocalGeometrySpecification actualParentLocalGeometrySpecification = actual.getParentLocalGeometrySpecification();
if (!Objects.areEqual(actualParentLocalGeometrySpecification, parentLocalGeometrySpecification)) {
failWithMessage(assertjErrorMessage, actual, parentLocalGeometrySpecification, actualParentLocalGeometrySpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTransformation3D's parentOccurrenceOrUsageViewItem3D is equal to the given one.
* @param parentOccurrenceOrUsageViewItem3D the given parentOccurrenceOrUsageViewItem3D to compare the actual VecTransformation3D's parentOccurrenceOrUsageViewItem3D to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTransformation3D's parentOccurrenceOrUsageViewItem3D is not equal to the given one.
*/
public S hasParentOccurrenceOrUsageViewItem3D(VecOccurrenceOrUsageViewItem3D parentOccurrenceOrUsageViewItem3D) {
// check that actual VecTransformation3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentOccurrenceOrUsageViewItem3D of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecOccurrenceOrUsageViewItem3D actualParentOccurrenceOrUsageViewItem3D = actual.getParentOccurrenceOrUsageViewItem3D();
if (!Objects.areEqual(actualParentOccurrenceOrUsageViewItem3D, parentOccurrenceOrUsageViewItem3D)) {
failWithMessage(assertjErrorMessage, actual, parentOccurrenceOrUsageViewItem3D, actualParentOccurrenceOrUsageViewItem3D);
}
// return the current assertion for method chaining
return myself;
}
}