T
- Item type. Should be able to return own headerspublic final class HmHeader<T extends Head>
extends org.hamcrest.TypeSafeMatcher<T>
This "matcher" tests given item headers.
The class is immutable and thread-safe.
Constructor and Description |
---|
HmHeader(org.hamcrest.Matcher<String> hdrm,
org.hamcrest.Matcher<Iterable<String>> vlm)
Ctor.
|
HmHeader(String hdr,
org.hamcrest.Matcher<Iterable<String>> vlm)
Ctor.
|
HmHeader(String hdr,
String val)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
describeMismatchSafely(T item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(T item) |
public HmHeader(org.hamcrest.Matcher<String> hdrm, org.hamcrest.Matcher<Iterable<String>> vlm)
hdrm
- Header matchervlm
- Value matcherpublic HmHeader(String hdr, org.hamcrest.Matcher<Iterable<String>> vlm)
hdr
- Header namevlm
- Value matcherpublic void describeTo(org.hamcrest.Description description)
public boolean matchesSafely(T item)
Copyright © 2015–2019 Take. All rights reserved.