Class Expectations
java.lang.Object
org.hibernate.jdbc.Expectations
Useful operations for dealing with
Expectations.-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpectationcreateExpectation(Supplier<? extends Expectation> expectation, boolean callable) Create an instance of the given class implementingExpectation.
-
Method Details
-
createExpectation
@Internal public static Expectation createExpectation(Supplier<? extends Expectation> expectation, boolean callable) Create an instance of the given class implementingExpectation.- Parameters:
expectation- a class which implementsExpectationcallable- true if theExpectationwill be called withCallableStatements.- Returns:
- a new instance of the given class
- Since:
- 6.5
-