Closed andriesfc closed 3 years ago
Java's Optional type is used to indicate that method either has result, or none.
Optional
A good example is a Spring Repository API which provides the following method:
Optional<T> findById(ID id)
This PR offers support for asserting against such an API.
Added some minor changes to update error messages/docs and test to better match existing code, other than that looked good! 2f3a38f1417f7dc5a3c0b7c7aa565f6b184d57bd
Java's
Optional
type is used to indicate that method either has result, or none.A good example is a Spring Repository API which provides the following method:
This PR offers support for asserting against such an API.