T - the type of value being matchedpublic class ConstantMatcher<T>
extends org.hamcrest.BaseMatcher<T>
Matcher that can be used to record the success and failures of another Matcher.
Typically this class is used for testing interaction with other Matchers.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor and Description |
|---|
ConstantMatcher()
Constructs a
ConstantMatcher. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ConstantMatcher<T> |
constant()
Obtains a
ConstantMatcher. |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(Object o) |
public ConstantMatcher()
ConstantMatcher.public static <T> ConstantMatcher<T> constant()
ConstantMatcher.T - the type of values being matchedConstantMatcherpublic boolean matches(Object o)
public void describeTo(org.hamcrest.Description description)
Copyright © 2017. All rights reserved.