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

org.cthul.matchers.chain.ChainFactory Maven / Gradle / Ivy

Go to download

Provides hamcrest.org matchers for strings and exceptions, allows matching code blocks, and provides several utilities for combining matchers.

The newest version!
package org.cthul.matchers.chain;

import java.util.Collection;
import org.hamcrest.Matcher;

/**
 * Creates a matcher chain.
 */
public interface ChainFactory {
    
    /**
     * Creates a matcher chain.
     * 
     * @param 
     * @param chain elements of the chain
     * @return matcher chain
     */
    public  Matcher create(Collection> chain);
    
    /**
     * Creates a matcher chain.
     * 
     * @param 
     * @param chain elements of the chain
     * @return matcher chain
     */
    public  Matcher create(Matcher... chain);
    
    /**
     * Creates a matcher chain.
     * 
     * @param 
     * @param chain elements of the chain
     * @return matcher chain
     */
    public  Matcher of(Collection> chain);
    
    /**
     * Creates a matcher chain.
     * 
     * @param 
     * @param chain elements of the chain
     * @return matcher chain
     */
    public  Matcher of(Matcher... chain);
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy