![JAR search and dependency download from the Maven repository](/logo.png)
it.ozimov.cirneco.hamcrest.CirnecoMatchersJ8 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cirneco-hamcrest-jdk8 Show documentation
Show all versions of cirneco-hamcrest-jdk8 Show documentation
An extension to make unit test easier with Hamcrest and Java8.
The newest version!
package it.ozimov.cirneco.hamcrest;
import it.ozimov.cirneco.hamcrest.base.IsEmptyOptional;
import org.hamcrest.Matcher;
import java.util.Optional;
/**
* The {@code CirnecoMatchersJ8} class groups all the matchers from
* {CirnecoMatchersJ7} plus the new ones introduced by Cirneco's Hamcrest extension for Java 8.
* Suggested use would be to import all the static methods of this class in a unit tes.
*
* @since version 0.1 for JDK8
*/
public class CirnecoMatchersJ8 extends CirnecoMatchersJ7 {
//BASE
/**
* Creates a matcher that matches when the examined {@linkplain Optional}
* contains no object.
*/
public static Matcher emptyOptional() {
return IsEmptyOptional.emptyOptional();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy