@@ -0,0 +1,1874 @@
+/*%0A * #%25L%0A * wcm.io%0A * %25%25%0A * Copyright (C) 2020 wcm.io%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage io.wcm.qa.glnm.hamcrest;%0A%0Aimport org.hamcrest.Description;%0Aimport org.hamcrest.Matcher;%0A%0Aimport io.wcm.qa.glnm.sampling.jsoup.JsoupResponseCodeSampler;%0A%0A%0A/**%0A * %3Cp%3EResponseCode class.%3C/p%3E%0A *%0A * @since 5.0.0%0A */%0Apublic class ResponseCode extends TypeSafeWrappingMatcher%3CString, Integer%3E %7B%0A%0A  protected ResponseCode(Matcher%3CInteger%3E matcher) %7B%0A    super(matcher);%0A  %7D%0A%0A  /** %7B@inheritDoc%7D */%0A  @Override%0A  public void describeTo(Description description) %7B%0A    description.appendText(%22response code %22);%0A    super.describeTo(description);%0A  %7D%0A%0A  @Override%0A  protected void describeMismatchSafely(String item, Description mismatchDescription) %7B%0A    mismatchDescription.appendText(%22response code for '%22);%0A    mismatchDescription.appendValue(item);%0A    mismatchDescription.appendText(%22' %22);%0A    super.describeMismatchSafely(item, mismatchDescription);%0A  %7D%0A%0A  @Override%0A  protected Integer map(String item) %7B%0A    return new JsoupResponseCodeSampler(item).sampleValue();%0A  %7D%0A%0A  /**%0A   * %3Cp%3EresponseCode.%3C/p%3E%0A   *%0A   * @param matcher a %7B@link org.hamcrest.Matcher%7D object.%0A   * @return a %7B@link org.hamcrest.Matcher%7D object.%0A   */%0A  public static Matcher%3CString%3E responseCode(Matcher%3CInteger%3E matcher) %7B%0A    return new ResponseCode(matcher);%0A  %7D%0A%7D%0A

add matcher for response codes