
com.foursoft.vecmodel.vec120.AbstractVecSoundDampingClassAssert 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 VecSoundDampingClass} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecSoundDampingClassAssert, A extends VecSoundDampingClass> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecSoundDampingClassAssert}
to make assertions on actual VecSoundDampingClass.
* @param actual the VecSoundDampingClass we want to make assertions on.
*/
protected AbstractVecSoundDampingClassAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecSoundDampingClass's classKey is equal to the given one.
* @param classKey the given classKey to compare the actual VecSoundDampingClass's classKey to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSoundDampingClass's classKey is not equal to the given one.
*/
public S hasClassKey(String classKey) {
// check that actual VecSoundDampingClass we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting classKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualClassKey = actual.getClassKey();
if (!Objects.areEqual(actualClassKey, classKey)) {
failWithMessage(assertjErrorMessage, actual, classKey, actualClassKey);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSoundDampingClass's referenceSystem is equal to the given one.
* @param referenceSystem the given referenceSystem to compare the actual VecSoundDampingClass's referenceSystem to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSoundDampingClass's referenceSystem is not equal to the given one.
*/
public S hasReferenceSystem(String referenceSystem) {
// check that actual VecSoundDampingClass we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting referenceSystem of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualReferenceSystem = actual.getReferenceSystem();
if (!Objects.areEqual(actualReferenceSystem, referenceSystem)) {
failWithMessage(assertjErrorMessage, actual, referenceSystem, actualReferenceSystem);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSoundDampingClass's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecSoundDampingClass's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSoundDampingClass's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecSoundDampingClass 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