org.assertj.core.api
Class AbstractSoftAssertions

java.lang.Object
  extended by org.assertj.core.api.AbstractSoftAssertions
Direct Known Subclasses:
JUnitSoftAssertions, SoftAssertions

public abstract class AbstractSoftAssertions
extends Object


Constructor Summary
protected AbstractSoftAssertions()
           
 
Method Summary
 BigDecimalAssert assertThat(BigDecimal actual)
          Creates a new instance of BigDecimalAssert.
 BooleanAssert assertThat(boolean actual)
          Creates a new instance of BooleanAssert.
 BooleanAssert assertThat(Boolean actual)
          Creates a new instance of BooleanAssert.
 BooleanArrayAssert assertThat(boolean[] actual)
          Creates a new instance of BooleanArrayAssert.
 ByteAssert assertThat(byte actual)
          Creates a new instance of ByteAssert.
 ByteAssert assertThat(Byte actual)
          Creates a new instance of ByteAssert.
 ByteArrayAssert assertThat(byte[] actual)
          Creates a new instance of ByteArrayAssert.
 CharacterAssert assertThat(char actual)
          Creates a new instance of CharacterAssert.
 CharArrayAssert assertThat(char[] actual)
          Creates a new instance of CharArrayAssert.
 CharacterAssert assertThat(Character actual)
          Creates a new instance of CharacterAssert.
 CharSequenceAssert assertThat(CharSequence actual)
          Creates a new instance of CharSequenceAssert.
 ClassAssert assertThat(Class<?> actual)
          Creates a new instance of ClassAssert
 DateAssert assertThat(Date actual)
          Creates a new instance of DateAssert.
 DoubleAssert assertThat(double actual)
          Creates a new instance of DoubleAssert.
 DoubleAssert assertThat(Double actual)
          Creates a new instance of DoubleAssert.
 DoubleArrayAssert assertThat(double[] actual)
          Creates a new instance of DoubleArrayAssert.
 FileAssert assertThat(File actual)
          Creates a new instance of FileAssert.
 FloatAssert assertThat(float actual)
          Creates a new instance of FloatAssert.
 FloatAssert assertThat(Float actual)
          Creates a new instance of FloatAssert.
 FloatArrayAssert assertThat(float[] actual)
          Creates a new instance of FloatArrayAssert.
 InputStreamAssert assertThat(InputStream actual)
          Creates a new instance of InputStreamAssert.
 IntegerAssert assertThat(int actual)
          Creates a new instance of IntegerAssert.
 IntArrayAssert assertThat(int[] actual)
          Creates a new instance of IntArrayAssert.
 IntegerAssert assertThat(Integer actual)
          Creates a new instance of IntegerAssert.
<T> IterableAssert<T>
assertThat(Iterable<? extends T> actual)
          Creates a new instance of IterableAssert.
<T> IterableAssert<T>
assertThat(Iterator<T> actual)
          Creates a new instance of IterableAssert.
<T> ListAssert<T>
assertThat(List<? extends T> actual)
          Creates a new instance of ListAssert.
 LongAssert assertThat(long actual)
          Creates a new instance of LongAssert.
 LongAssert assertThat(Long actual)
          Creates a new instance of LongAssert.
 LongArrayAssert assertThat(long[] actual)
          Creates a new instance of LongArrayAssert.
<K,V> MapAssert<K,V>
assertThat(Map<K,V> actual)
          Creates a new instance of MapAssert.
 ShortAssert assertThat(short actual)
          Creates a new instance of ShortAssert.
 ShortAssert assertThat(Short actual)
          Creates a new instance of ShortAssert.
 ShortArrayAssert assertThat(short[] actual)
          Creates a new instance of ShortArrayAssert.
 StringAssert assertThat(String actual)
          Creates a new instance of StringAssert.
<T> ObjectAssert<T>
assertThat(T actual)
          Creates a new instance of ObjectAssert.
<T> ObjectArrayAssert<T>
assertThat(T[] actual)
          Creates a new instance of ObjectArrayAssert.
 ThrowableAssert assertThat(Throwable actual)
          Creates a new instance of ThrowableAssert.
protected
<T,V> V
proxy(Class<V> assertClass, Class<T> actualClass, T actual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSoftAssertions

protected AbstractSoftAssertions()
Method Detail

proxy

protected <T,V> V proxy(Class<V> assertClass,
                        Class<T> actualClass,
                        T actual)

assertThat

public BigDecimalAssert assertThat(BigDecimal actual)
Creates a new instance of BigDecimalAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public BooleanAssert assertThat(boolean actual)
Creates a new instance of BooleanAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public BooleanAssert assertThat(Boolean actual)
Creates a new instance of BooleanAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public BooleanArrayAssert assertThat(boolean[] actual)
Creates a new instance of BooleanArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ByteAssert assertThat(byte actual)
Creates a new instance of ByteAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ByteAssert assertThat(Byte actual)
Creates a new instance of ByteAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ByteArrayAssert assertThat(byte[] actual)
Creates a new instance of ByteArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public CharacterAssert assertThat(char actual)
Creates a new instance of CharacterAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public CharArrayAssert assertThat(char[] actual)
Creates a new instance of CharArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public CharacterAssert assertThat(Character actual)
Creates a new instance of CharacterAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ClassAssert assertThat(Class<?> actual)
Creates a new instance of ClassAssert

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <T> IterableAssert<T> assertThat(Iterable<? extends T> actual)
Creates a new instance of IterableAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <T> IterableAssert<T> assertThat(Iterator<T> actual)
Creates a new instance of IterableAssert. The Iterator is first converted into an Iterable

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public DoubleAssert assertThat(double actual)
Creates a new instance of DoubleAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public DoubleAssert assertThat(Double actual)
Creates a new instance of DoubleAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public DoubleArrayAssert assertThat(double[] actual)
Creates a new instance of DoubleArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public FileAssert assertThat(File actual)
Creates a new instance of FileAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public InputStreamAssert assertThat(InputStream actual)
Creates a new instance of InputStreamAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public FloatAssert assertThat(float actual)
Creates a new instance of FloatAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public FloatAssert assertThat(Float actual)
Creates a new instance of FloatAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public FloatArrayAssert assertThat(float[] actual)
Creates a new instance of FloatArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public IntegerAssert assertThat(int actual)
Creates a new instance of IntegerAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public IntArrayAssert assertThat(int[] actual)
Creates a new instance of IntArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public IntegerAssert assertThat(Integer actual)
Creates a new instance of IntegerAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <T> ListAssert<T> assertThat(List<? extends T> actual)
Creates a new instance of ListAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public LongAssert assertThat(long actual)
Creates a new instance of LongAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public LongAssert assertThat(Long actual)
Creates a new instance of LongAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public LongArrayAssert assertThat(long[] actual)
Creates a new instance of LongArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <T> ObjectAssert<T> assertThat(T actual)
Creates a new instance of ObjectAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <T> ObjectArrayAssert<T> assertThat(T[] actual)
Creates a new instance of ObjectArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public <K,V> MapAssert<K,V> assertThat(Map<K,V> actual)
Creates a new instance of MapAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ShortAssert assertThat(short actual)
Creates a new instance of ShortAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ShortAssert assertThat(Short actual)
Creates a new instance of ShortAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ShortArrayAssert assertThat(short[] actual)
Creates a new instance of ShortArrayAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public CharSequenceAssert assertThat(CharSequence actual)
Creates a new instance of CharSequenceAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public StringAssert assertThat(String actual)
Creates a new instance of StringAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public DateAssert assertThat(Date actual)
Creates a new instance of DateAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion object.

assertThat

public ThrowableAssert assertThat(Throwable actual)
Creates a new instance of ThrowableAssert.

Parameters:
actual - the actual value.
Returns:
the created assertion Throwable.


Copyright © 2013–2015 AssertJ. All rights reserved.