Package org.assertj.guava.api
Interface InstanceOfAssertFactories
-
- All Known Implementing Classes:
Assertions
public interface InstanceOfAssertFactoriesGuavaInstanceOfAssertFactoriesforAssert.asInstanceOf(InstanceOfAssertFactory).- Since:
- 3.3.0
- Author:
- Stefano Cordio
-
-
Field Summary
Fields Modifier and Type Field Description static org.assertj.core.api.InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert>BYTE_SOURCEInstanceOfAssertFactoryfor aByteSource.static org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<Object,Object>>MULTIMAPInstanceOfAssertFactoryfor aMultimap, assumingObjectas key and value types.static org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<Object>>MULTISETInstanceOfAssertFactoryfor aMultiset, assumingObjectas element type.static org.assertj.core.api.InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<Object>>OPTIONALInstanceOfAssertFactoryfor anOptional, assumingObjectas value type.static org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<Object,Object,Object>>TABLEInstanceOfAssertFactoryfor aTable, assumingObjectas row key type, column key type and value type.
-
Method Summary
Static Methods Modifier and Type Method Description static <K,V>
org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<K,V>>multimap(Class<K> keyType, Class<V> valueType)InstanceOfAssertFactoryfor aMultimap.static <ELEMENT> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<ELEMENT>>multiset(Class<ELEMENT> elementType)InstanceOfAssertFactoryfor aMultiset.static <VALUE> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<VALUE>>optional(Class<VALUE> resultType)InstanceOfAssertFactoryfor anOptional.static <C extends Comparable<C>>
org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Range,RangeAssert<C>>range(Class<C> comparableType)InstanceOfAssertFactoryfor aRange.static <K extends Comparable<K>,V>
org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.RangeMap,RangeMapAssert<K,V>>rangeMap(Class<K> keyType, Class<V> valueType)InstanceOfAssertFactoryfor aRangeMap.static <T extends Comparable<T>>
org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.RangeSet,RangeSetAssert<T>>rangeSet(Class<T> comparableType)InstanceOfAssertFactoryfor aRangeSet.static <R,C,V>
org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<R,C,V>>table(Class<R> rowKeyType, Class<C> columnKeyType, Class<V> valueType)InstanceOfAssertFactoryfor aTable.
-
-
-
Field Detail
-
BYTE_SOURCE
static final org.assertj.core.api.InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert> BYTE_SOURCE
InstanceOfAssertFactoryfor aByteSource.
-
MULTIMAP
static final org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<Object,Object>> MULTIMAP
InstanceOfAssertFactoryfor aMultimap, assumingObjectas key and value types.- See Also:
multimap(Class, Class)
-
OPTIONAL
static final org.assertj.core.api.InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<Object>> OPTIONAL
InstanceOfAssertFactoryfor anOptional, assumingObjectas value type.- See Also:
optional(Class)
-
TABLE
static final org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<Object,Object,Object>> TABLE
InstanceOfAssertFactoryfor aTable, assumingObjectas row key type, column key type and value type.- See Also:
table(Class, Class, Class)
-
MULTISET
static final org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<Object>> MULTISET
InstanceOfAssertFactoryfor aMultiset, assumingObjectas element type.- See Also:
multiset(Class)
-
-
Method Detail
-
multimap
static <K,V> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<K,V>> multimap(Class<K> keyType, Class<V> valueType)
InstanceOfAssertFactoryfor aMultimap.- Type Parameters:
K- theMultimapkey type.V- theMultimapvalue type.- Parameters:
keyType- the key type instance.valueType- the value type instance.- Returns:
- the factory instance.
- See Also:
MULTIMAP
-
optional
static <VALUE> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<VALUE>> optional(Class<VALUE> resultType)
InstanceOfAssertFactoryfor anOptional.- Type Parameters:
VALUE- theOptionalvalue type.- Parameters:
resultType- the value type instance.- Returns:
- the factory instance.
- See Also:
OPTIONAL
-
range
static <C extends Comparable<C>> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Range,RangeAssert<C>> range(Class<C> comparableType)
InstanceOfAssertFactoryfor aRange.- Type Parameters:
C- theComparabletype.- Parameters:
comparableType- the comparable type instance.- Returns:
- the factory instance.
-
rangeMap
static <K extends Comparable<K>,V> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.RangeMap,RangeMapAssert<K,V>> rangeMap(Class<K> keyType, Class<V> valueType)
InstanceOfAssertFactoryfor aRangeMap.- Type Parameters:
K- theRangeMapkey type.V- theRangeMapvalue type.- Parameters:
keyType- the key type instance.valueType- the value type instance.- Returns:
- the factory instance.
-
rangeSet
static <T extends Comparable<T>> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.RangeSet,RangeSetAssert<T>> rangeSet(Class<T> comparableType)
InstanceOfAssertFactoryfor aRangeSet.- Type Parameters:
T- theComparabletype.- Parameters:
comparableType- the comparable type instance.- Returns:
- the factory instance
-
table
static <R,C,V> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<R,C,V>> table(Class<R> rowKeyType, Class<C> columnKeyType, Class<V> valueType)
InstanceOfAssertFactoryfor aTable.- Type Parameters:
R- theTablerow key type.C- theTablecolumn key type.V- theTablevalue type.- Parameters:
rowKeyType- the row key type instance.columnKeyType- the column key type instance.valueType- the value type instance.- Returns:
- the factory instance.
- See Also:
TABLE
-
multiset
static <ELEMENT> org.assertj.core.api.InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<ELEMENT>> multiset(Class<ELEMENT> elementType)
InstanceOfAssertFactoryfor aMultiset.- Type Parameters:
ELEMENT- theMultisetelement type.- Parameters:
elementType- the element type instance.- Returns:
- the factory instance.
- See Also:
MULTISET
-
-