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

org.cthul.matchers.chain.ChainFactoryBase 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.Arrays;
import java.util.Collection;
import org.hamcrest.Matcher;

/**
 */
public abstract class ChainFactoryBase implements ChainFactory {

    @Override
    public  Matcher create(Matcher... chain) {
        return create(Arrays.asList(chain));
    }

    @Override
    public  Matcher of(Collection> chain) {
        return create(chain);
    }

    @Override
    public  Matcher of(Matcher... chain) {
        return create(chain);
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy