package org.mapfish.print.processor.http.matcher;
import org.springframework.http.HttpMethod;
import java.net.MalformedURLException;
import java.net.SocketException;
import java.net.URI;
import java.net.UnknownHostException;
import static org.junit.Assert.assertEquals;
/**
* Support methods for the tests
*/
public class MatcherTestUtils {
static void assertMatch(final URIMatcher matcher, boolean expected, final URI uri, final HttpMethod method)
throws SocketException, UnknownHostException, MalformedURLException {
assertEquals(expected, matcher.matches(MatchInfo.fromUri(uri, method)));
}
}