// Path: common-matchers/src/main/java/ru/yandex/qatools/matchers/uri/SameAsURIMatcher.java
// @Factory
// public static SameAsURIMatcher sameAsURI(URI expectedUri) {
//     return new SameAsURIMatcher(expectedUri);
// }


import org.hamcrest.Description;
import org.hamcrest.StringDescription;
import org.junit.Test;
import ru.lanwen.diff.uri.UriDiffer;
import ru.lanwen.diff.uri.core.filters.UriDiffFilter;
import java.net.URI;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.containsString;
import static ru.lanwen.diff.uri.core.filters.AnyParamValueFilter.param;
import static ru.lanwen.diff.uri.core.filters.SchemeFilter.scheme;
import static ru.yandex.qatools.matchers.uri.SameAsURIMatcher.sameAsURI;
package ru.yandex.qatools.matchers.uri;




/**
 * User: lanwen
 * Date: 30.09.14
 * Time: 20:14
 */
public class SameAsURIMatcherTest {

    public static final URI EXPECTED_URI = URI.create("http://ya.ru");
    public static final URI ACTUAL_URI = URI.create("http://yandex.ru");

    public static final URI ACTUAL_AS_EXPECTED_WITH_PARAM_AND_SCHEME_URI = URI.create("https://ya.ru/?param=1");
    public static final String PARAM_NAME = "param";

    public static final String HTTP_SCHEME = "http";
    public static final String HTTPS_SCHEME = "https";

    @Test(expected = AssertionError.class)
    public void shouldThrowAssertionErrorOnDifferentURIs() throws Exception {
// Path: common-matchers/src/main/java/ru/yandex/qatools/matchers/uri/SameAsURIMatcher.java
// @Factory
// public static SameAsURIMatcher sameAsURI(URI expectedUri) {
//     return new SameAsURIMatcher(expectedUri);
// }


// Path: common-matchers/src/test/java/ru/yandex/qatools/matchers/uri/SameAsURIMatcherTest.java
import org.hamcrest.Description;
import org.hamcrest.StringDescription;
import org.junit.Test;
import ru.lanwen.diff.uri.UriDiffer;
import ru.lanwen.diff.uri.core.filters.UriDiffFilter;
import java.net.URI;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.containsString;
import static ru.lanwen.diff.uri.core.filters.AnyParamValueFilter.param;
import static ru.lanwen.diff.uri.core.filters.SchemeFilter.scheme;
import static ru.yandex.qatools.matchers.uri.SameAsURIMatcher.sameAsURI;

package ru.yandex.qatools.matchers.uri;




/**
 * User: lanwen
 * Date: 30.09.14
 * Time: 20:14
 */
public class SameAsURIMatcherTest {

    public static final URI EXPECTED_URI = URI.create("http://ya.ru");
    public static final URI ACTUAL_URI = URI.create("http://yandex.ru");

    public static final URI ACTUAL_AS_EXPECTED_WITH_PARAM_AND_SCHEME_URI = URI.create("https://ya.ru/?param=1");
    public static final String PARAM_NAME = "param";

    public static final String HTTP_SCHEME = "http";
    public static final String HTTPS_SCHEME = "https";

    @Test(expected = AssertionError.class)
    public void shouldThrowAssertionErrorOnDifferentURIs() throws Exception {
        assertThat(ACTUAL_URI, sameAsURI(EXPECTED_URI));