public class PrimitiveIntArraySubject extends AbstractArraySubject<PrimitiveIntArraySubject,int[]>
int[]
.Subject.HasField
failureStrategy
Constructor and Description |
---|
PrimitiveIntArraySubject(FailureStrategy failureStrategy,
int[] o) |
Modifier and Type | Method and Description |
---|---|
ListSubject<?,Integer,List<Integer>> |
asList() |
void |
isEqualTo(Object expected)
A proposition that the provided Object[] is an array of the same length and type, and
contains elements such that each element in
expected is equal to each element
in the subject, and in the same position. |
void |
isNotEqualTo(Object expected) |
protected List<Integer> |
listRepresentation() |
protected String |
underlyingType() |
failWithBadType, getDisplaySubject, named
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isNotA, isNotNull, isNull, labeled
public PrimitiveIntArraySubject(FailureStrategy failureStrategy, int[] o)
protected String underlyingType()
underlyingType
in class AbstractArraySubject<PrimitiveIntArraySubject,int[]>
protected List<Integer> listRepresentation()
listRepresentation
in class AbstractArraySubject<PrimitiveIntArraySubject,int[]>
public void isEqualTo(Object expected)
expected
is equal to each element
in the subject, and in the same position.isEqualTo
in class Subject<AbstractArraySubject<PrimitiveIntArraySubject,int[]>,int[]>
public void isNotEqualTo(Object expected)
isNotEqualTo
in class Subject<AbstractArraySubject<PrimitiveIntArraySubject,int[]>,int[]>
public ListSubject<?,Integer,List<Integer>> asList()
Copyright © 2017. All rights reserved.