public final class IsString
extends org.hamcrest.TypeSafeMatcher<byte[]>
Constructor and Description |
---|
IsString(Charset charset,
org.hamcrest.Matcher<String> matcher)
Ctor.
|
IsString(Charset charset,
String string)
Ctor.
|
IsString(org.hamcrest.Matcher<String> matcher)
Ctor.
|
IsString(String string)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(byte[] item) |
describeMismatch, describeMismatchSafely, matches
public IsString(String string)
string
- String the bytes should be equal to.public IsString(Charset charset, String string)
charset
- Charset used to decode bytes to string.string
- String the bytes should be equal to.public IsString(org.hamcrest.Matcher<String> matcher)
matcher
- Matcher for string.Copyright © 2012–2020 jcabi.com. All rights reserved.