assertj: AssertJ 3.27.7 lab (soft assertions, recursive comparison, custom and generated assertions)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CifR2BE7PBvRy5hT8TS9oz
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# AbstractOrderAssert.java: annotation line, class declaration and the isPaid() method, verbatim
|
||||
@javax.annotation.Generated(value="assertj-assertions-generator")
|
||||
public abstract class AbstractOrderAssert<S extends AbstractOrderAssert<S, A>, A extends Order> extends AbstractObjectAssert<S, A> {
|
||||
public S isPaid() {
|
||||
// check that actual Order we want to make assertions on is not null.
|
||||
isNotNull();
|
||||
|
||||
// check that property call/field access is true
|
||||
if (!actual.isPaid()) {
|
||||
failWithMessage("\nExpecting that actual Order is paid but is not.");
|
||||
}
|
||||
|
||||
// return the current assertion for method chaining
|
||||
return myself;
|
||||
}
|
||||
Reference in New Issue
Block a user