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