
com.foursoft.vecmodel.vec120.AbstractVecOnWayPlacementAssert 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 VecOnWayPlacement} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecOnWayPlacementAssert, A extends VecOnWayPlacement> extends AbstractVecPlacementAssert {
/**
* Creates a new {@link AbstractVecOnWayPlacementAssert}
to make assertions on actual VecOnWayPlacement.
* @param actual the VecOnWayPlacement we want to make assertions on.
*/
protected AbstractVecOnWayPlacementAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecOnWayPlacement's endLocation is equal to the given one.
* @param endLocation the given endLocation to compare the actual VecOnWayPlacement's endLocation to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOnWayPlacement's endLocation is not equal to the given one.
*/
public S hasEndLocation(VecLocation endLocation) {
// check that actual VecOnWayPlacement we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting endLocation of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecLocation actualEndLocation = actual.getEndLocation();
if (!Objects.areEqual(actualEndLocation, endLocation)) {
failWithMessage(assertjErrorMessage, actual, endLocation, actualEndLocation);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOnWayPlacement's path is equal to the given one.
* @param path the given path to compare the actual VecOnWayPlacement's path to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOnWayPlacement's path is not equal to the given one.
*/
public S hasPath(VecPath path) {
// check that actual VecOnWayPlacement we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting path of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPath actualPath = actual.getPath();
if (!Objects.areEqual(actualPath, path)) {
failWithMessage(assertjErrorMessage, actual, path, actualPath);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOnWayPlacement's startLocation is equal to the given one.
* @param startLocation the given startLocation to compare the actual VecOnWayPlacement's startLocation to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOnWayPlacement's startLocation is not equal to the given one.
*/
public S hasStartLocation(VecLocation startLocation) {
// check that actual VecOnWayPlacement we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting startLocation of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecLocation actualStartLocation = actual.getStartLocation();
if (!Objects.areEqual(actualStartLocation, startLocation)) {
failWithMessage(assertjErrorMessage, actual, startLocation, actualStartLocation);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy