
com.foursoft.vecmodel.vec120.AbstractVecFileBasedInstructionAssert 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 VecFileBasedInstruction} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecFileBasedInstructionAssert, A extends VecFileBasedInstruction> extends AbstractVecInstructionAssert {
/**
* Creates a new {@link AbstractVecFileBasedInstructionAssert}
to make assertions on actual VecFileBasedInstruction.
* @param actual the VecFileBasedInstruction we want to make assertions on.
*/
protected AbstractVecFileBasedInstructionAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecFileBasedInstruction's dataFormat is equal to the given one.
* @param dataFormat the given dataFormat to compare the actual VecFileBasedInstruction's dataFormat to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFileBasedInstruction's dataFormat is not equal to the given one.
*/
public S hasDataFormat(String dataFormat) {
// check that actual VecFileBasedInstruction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting dataFormat of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualDataFormat = actual.getDataFormat();
if (!Objects.areEqual(actualDataFormat, dataFormat)) {
failWithMessage(assertjErrorMessage, actual, dataFormat, actualDataFormat);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFileBasedInstruction's fileName is equal to the given one.
* @param fileName the given fileName to compare the actual VecFileBasedInstruction's fileName to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFileBasedInstruction's fileName is not equal to the given one.
*/
public S hasFileName(String fileName) {
// check that actual VecFileBasedInstruction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting fileName of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualFileName = actual.getFileName();
if (!Objects.areEqual(actualFileName, fileName)) {
failWithMessage(assertjErrorMessage, actual, fileName, actualFileName);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFileBasedInstruction's lastModified is equal to the given one.
* @param lastModified the given lastModified to compare the actual VecFileBasedInstruction's lastModified to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFileBasedInstruction's lastModified is not equal to the given one.
*/
public S hasLastModified(javax.xml.datatype.XMLGregorianCalendar lastModified) {
// check that actual VecFileBasedInstruction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting lastModified of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
javax.xml.datatype.XMLGregorianCalendar actualLastModified = actual.getLastModified();
if (!Objects.areEqual(actualLastModified, lastModified)) {
failWithMessage(assertjErrorMessage, actual, lastModified, actualLastModified);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy