
org.cthul.matchers.chain.ChainFactoryBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cthul-matchers Show documentation
Show all versions of cthul-matchers Show documentation
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 super T>... chain) {
return create(Arrays.asList(chain));
}
@Override
public Matcher of(Collection extends Matcher super T>> chain) {
return create(chain);
}
@Override
public Matcher of(Matcher super T>... chain) {
return create(chain);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy