
com.foursoft.vecmodel.vec120.AbstractVecConductorCurrentInformationAssert 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.api.AbstractObjectAssert;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecConductorCurrentInformation} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecConductorCurrentInformationAssert, A extends VecConductorCurrentInformation> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecConductorCurrentInformationAssert}
to make assertions on actual VecConductorCurrentInformation.
* @param actual the VecConductorCurrentInformation we want to make assertions on.
*/
protected AbstractVecConductorCurrentInformationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecConductorCurrentInformation's environmentTemperature is equal to the given one.
* @param environmentTemperature the given environmentTemperature to compare the actual VecConductorCurrentInformation's environmentTemperature to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConductorCurrentInformation's environmentTemperature is not equal to the given one.
*/
public S hasEnvironmentTemperature(VecNumericalValue environmentTemperature) {
// check that actual VecConductorCurrentInformation we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting environmentTemperature of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualEnvironmentTemperature = actual.getEnvironmentTemperature();
if (!Objects.areEqual(actualEnvironmentTemperature, environmentTemperature)) {
failWithMessage(assertjErrorMessage, actual, environmentTemperature, actualEnvironmentTemperature);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConductorCurrentInformation's maxCurrent is equal to the given one.
* @param maxCurrent the given maxCurrent to compare the actual VecConductorCurrentInformation's maxCurrent to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConductorCurrentInformation's maxCurrent is not equal to the given one.
*/
public S hasMaxCurrent(VecNumericalValue maxCurrent) {
// check that actual VecConductorCurrentInformation we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting maxCurrent of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualMaxCurrent = actual.getMaxCurrent();
if (!Objects.areEqual(actualMaxCurrent, maxCurrent)) {
failWithMessage(assertjErrorMessage, actual, maxCurrent, actualMaxCurrent);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConductorCurrentInformation's parentConductorSpecification is equal to the given one.
* @param parentConductorSpecification the given parentConductorSpecification to compare the actual VecConductorCurrentInformation's parentConductorSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConductorCurrentInformation's parentConductorSpecification is not equal to the given one.
*/
public S hasParentConductorSpecification(VecConductorSpecification parentConductorSpecification) {
// check that actual VecConductorCurrentInformation we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentConductorSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecConductorSpecification actualParentConductorSpecification = actual.getParentConductorSpecification();
if (!Objects.areEqual(actualParentConductorSpecification, parentConductorSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentConductorSpecification, actualParentConductorSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConductorCurrentInformation's voltage is equal to the given one.
* @param voltage the given voltage to compare the actual VecConductorCurrentInformation's voltage to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConductorCurrentInformation's voltage is not equal to the given one.
*/
public S hasVoltage(VecNumericalValue voltage) {
// check that actual VecConductorCurrentInformation we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting voltage of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualVoltage = actual.getVoltage();
if (!Objects.areEqual(actualVoltage, voltage)) {
failWithMessage(assertjErrorMessage, actual, voltage, actualVoltage);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConductorCurrentInformation's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecConductorCurrentInformation's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConductorCurrentInformation's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecConductorCurrentInformation we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting xmlId of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualXmlId = actual.getXmlId();
if (!Objects.areEqual(actualXmlId, xmlId)) {
failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy