All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.ozimov.cirneco.hamcrest.CirnecoMatchersJ8 Maven / Gradle / Ivy

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