public class

URIMatcher

extends TypeSafeMatcher<T>
java.lang.Object
   ↳ org.hamcrest.BaseMatcher<T>
     ↳ org.hamcrest.TypeSafeMatcher<T>
       ↳ com.atlassian.jira.functest.matcher.URIMatcher

Class Overview

Tests whether the URL exactly matches. This is not a logical matcher. This matcher is used to match generated URI's.

For example: (query parameters delimeter

     http://www.test.com/home/service?action=test&name=Jo&surname=Adam
 

is NOT the same as:

     http://www.test.com/home/service?action=test;name=Jo;surname=Adam
 

For example:

     http://www.test.com/home/service?action=test&name=Jo&surname=Adam;
 

is NOT the same as:

     http://www.test.com/home/service?action=test&name=Jo&surname=Adam;
 

* The ONLY exception: (Order of query parameters)

     http://www.test.com/home/service?action=test&name=Jo&surname=Adam
 

IS the same as:

     http://www.test.com/home/service?name=Jo&surname=Adam&action=test
 

Summary

Public Methods
void describeTo(Description description)
static URIMatcher isSameURI(URI uri)
Protected Methods
boolean matchesSafely(URI receivedUriToMatch)
[Expand]
Inherited Methods
From class org.hamcrest.TypeSafeMatcher
From class org.hamcrest.BaseMatcher
From class java.lang.Object
From interface org.hamcrest.Matcher
From interface org.hamcrest.SelfDescribing

Public Methods

public void describeTo (Description description)

public static URIMatcher isSameURI (URI uri)

Protected Methods

protected boolean matchesSafely (URI receivedUriToMatch)