public interface ClassFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>> extends org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value,BaseFluent,TheFluent,This>, ObjectFluent<Value,BaseFluent,TheFluent,This>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ClassFluent.AndChain<Value extends Class<?>,TheFluent,This extends ClassFluent.AndChain<Value,TheFluent,This>> |
static class |
ClassFluent.Assert<Value extends Class<?>> |
static interface |
ClassFluent.OrChain<Value extends Class<?>,TheFluent,This extends ClassFluent.OrChain<Value,TheFluent,This>> |
static class |
ClassFluent.Step<Value extends Class<?>,TheFluent,This extends ClassFluent.Step<Value,TheFluent,This>> |
| Modifier and Type | Method and Description |
|---|---|
ClassFluent.AndChain<Value,TheFluent,?> |
all() |
ClassFluent.AndChain<Value,TheFluent,?> |
both() |
ClassFluent.AndChain<Value,TheFluent,?> |
both(org.hamcrest.Matcher<? super Value> matcher) |
ClassFluent.OrChain<Value,TheFluent,?> |
either() |
ClassFluent.OrChain<Value,TheFluent,?> |
either(org.hamcrest.Matcher<? super Value> matcher) |
default <T> TheFluent |
typeCompatibleWith(Class<T> baseType)
Creates a matcher of
Class that matches when the specified baseType is
assignable from the examined class. |
get, get, hasToString, hasToString, isIn, isIn, isOneOf, notNullValue, nullValue, sameInstance, theInstance__, __, __, allOf, anyOf, as, as, equalTo, has, has, has, has, hasNot, hasNot, hasNot, hasNot, hasType, is, is, is, isA, isNot, isNot, isNot, noneOf, not, not, not, not, notdefault <T> TheFluent typeCompatibleWith(Class<T> baseType)
Class that matches when the specified baseType is
assignable from the examined class.
For example:
assertThat(Integer.class, typeCompatibleWith(Number.class))
baseType - the base class to examine classes againstIsCompatibleType.typeCompatibleWith(java.lang.Class)ClassFluent.OrChain<Value,TheFluent,?> either()
either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Class<?>,BaseFluent>either in interface ObjectFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>ClassFluent.OrChain<Value,TheFluent,?> either(org.hamcrest.Matcher<? super Value> matcher)
either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Class<?>,BaseFluent>either in interface ObjectFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>ClassFluent.AndChain<Value,TheFluent,?> both()
both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Class<?>,BaseFluent>both in interface ObjectFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>ClassFluent.AndChain<Value,TheFluent,?> both(org.hamcrest.Matcher<? super Value> matcher)
both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Class<?>,BaseFluent>both in interface ObjectFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>ClassFluent.AndChain<Value,TheFluent,?> all()
all in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.FluentStep<Value extends Class<?>,BaseFluent>all in interface ObjectFluent<Value extends Class<?>,BaseFluent,TheFluent extends BaseFluent,This extends ClassFluent<Value,BaseFluent,TheFluent,This>>Copyright © 2015. All Rights Reserved.