Skip to content

Commit

Permalink
Merge branch 'master' into version-from-git
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbarumba committed Sep 8, 2024
2 parents d952cc1 + 01c776c commit da41f2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
import java.util.Optional;

/**
* Matcher that expects empty {@link Optional}.
* Matcher that expects an empty {@link Optional}.
* @param <T> type of {@link Optional} value
*/
public class OptionalEmpty<T> extends TypeSafeDiagnosingMatcher<Optional<T>> {

/**
* Constructor, best called from {@link #emptyOptional()}.
*/
public OptionalEmpty() {
}

/**
* Matcher that expects empty {@link Optional}.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Matchers that perform comparisons on {@link java.util.Optional} instances.
*/
package org.hamcrest.optional;

0 comments on commit da41f2e

Please sign in to comment.