public static Expectations successfullyReachedUrl(String testAction, String url) {
        Expectations expectations = new Expectations();
        expectations.addSuccessStatusCodesForActions(new String[] { testAction });
        expectations.addExpectation(new ResponseUrlExpectation(testAction, Constants.STRING_EQUALS, url, "Did not reach the expected URL."));
        return expectations;
    }
public static Expectations successfullyReachedUrl ( String testAction , String url ) { Expectations expectations = new Expectations ( ) ; expectations . addSuccessStatusCodesForActions ( new String [ ] { testAction } ) ; expectations . addExpectation ( new ResponseUrlExpectation ( testAction , Constants . STRING_EQUALS , url , "Did not reach the expected URL." ) ) ; return expectations ; }
Sets expectations that will check:
<ol>
<li>200 status code in the response for the specified test action
<li>Response URL is equivalent to provided URL
</ol>