T
- The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnColumnOfChangeEquality<T extends AssertOnColumnOfChangeEquality<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasValues(Boolean expected)
Verifies that the values at the start point and the end point are equal to a boolean.
|
T |
hasValues(Boolean expectedAtStartPoint,
Boolean expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a boolean for start point and another boolean for end point.
|
T |
hasValues(byte[] expected)
Verifies that the values at the start point and the end point are equal to bytes.
|
T |
hasValues(byte[] expectedAtStartPoint,
byte[] expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to bytes for start point and other bytes for end point.
|
T |
hasValues(DateTimeValue expected)
Verifies that the values at the start point and the end point are equal to a date/time.
|
T |
hasValues(DateTimeValue expectedAtStartPoint,
DateTimeValue expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a date/time for start point and another date/time for end point.
|
T |
hasValues(DateValue expected)
Verifies that the values at the start point and the end point are equal to a date.
|
T |
hasValues(DateValue expectedAtStartPoint,
DateValue expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a date for start point and another date for end point.
|
T |
hasValues(Number expected)
Verifies that the values at the start point and the end point are equal to a number.
|
T |
hasValues(Number expectedAtStartPoint,
Number expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a number for start point and another number for end point.
|
T |
hasValues(String expected)
Verifies that the values at the start point and the end point are equal to a text.
|
T |
hasValues(String expectedAtStartPoint,
String expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a text for start point and another text for end point.
|
T |
hasValues(TimeValue expected)
Verifies that the values at the start point and the end point are equal to a time.
|
T |
hasValues(TimeValue expectedAtStartPoint,
TimeValue expectedAtEndPoint)
Verifies that the values at the start point and the end point are equal to a time for start point and another time for end point.
|
T hasValues(Boolean expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
true
:
assertThat(changes).change(1).column().hasValues(true);
expected
- The expected boolean value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the boolean.ChangeColumnAssert.hasValues(Boolean)
T hasValues(Boolean expectedAtStartPoint, Boolean expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
true
at start point and false
at end point :
assertThat(changes).change(1).column().hasValues(true, false);
expectedAtStartPoint
- The expected boolean at start point.expectedAtEndPoint
- The expected boolean at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding booleans.ChangeColumnAssert.hasValues(Boolean, Boolean)
T hasValues(Number expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
1
:
assertThat(changes).change(1).column().hasValues(1);
expected
- The expected number value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the number.ChangeColumnAssert.hasValues(Number)
T hasValues(Number expectedAtStartPoint, Number expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
1
at start point and 2
at end point :
assertThat(changes).change(1).column().hasValues(1, 2);
expectedAtStartPoint
- The expected number at start point.expectedAtEndPoint
- The expected number at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding numbers.ChangeColumnAssert.hasValues(Number, Number)
T hasValues(byte[] expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(changes).change(1).column().hasValues(bytes);
expected
- The expected bytes value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the bytes.ChangeColumnAssert.hasValues(byte[])
T hasValues(byte[] expectedAtStartPoint, byte[] expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
a array of bytes loaded from a file in the classpath at start point and another array at end point :
byte[] bytes = bytesContentFromClassPathOf("file.png");
byte[] bytes2 = bytesContentFromClassPathOf("file2.png");
assertThat(changes).change(1).column().hasValues(bytes, bytes2);
expectedAtStartPoint
- The expected bytes at start point.expectedAtEndPoint
- The expected bytes at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding bytes.ChangeColumnAssert.hasValues(byte[], byte[])
T hasValues(String expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
"Ellen Louise Ripley" :
assertThat(changes).change(1).column().hasValues("Ellen Louise Ripley");
expected
- The expected text value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the text.ChangeColumnAssert.hasValues(String)
T hasValues(String expectedAtStartPoint, String expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
"Sigourney" at start point and "Susan Alexandra" at end point :
assertThat(changes).change(1).column().hasValues("Sigourney", "Susan Alexandra");
expectedAtStartPoint
- The expected text at start point.expectedAtEndPoint
- The expected text at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding texts.ChangeColumnAssert.hasValues(String, String)
T hasValues(DateValue expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
12/23/2007 :
assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23));
expected
- The expected date value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the date.ChangeColumnAssert.hasValues(DateValue)
T hasValues(DateValue expectedAtStartPoint, DateValue expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
12/23/2007 at start point and 07/25/2002 at end point :
assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23), DateValue.of(2002, 7, 25));
expectedAtStartPoint
- The expected date at start point.expectedAtEndPoint
- The expected date at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding dates.ChangeColumnAssert.hasValues(DateValue, DateValue)
T hasValues(TimeValue expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
09:01AM :
assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1));
expected
- The expected time value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the time.ChangeColumnAssert.hasValues(TimeValue)
T hasValues(TimeValue expectedAtStartPoint, TimeValue expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
09:01AM at start point and 03:30AM at end point :
assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1), TimeValue.of(3, 30));
expectedAtStartPoint
- The expected time at start point.expectedAtEndPoint
- The expected time at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding times.ChangeColumnAssert.hasValues(TimeValue, TimeValue)
T hasValues(DateTimeValue expected)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
12/23/2007 09:01AM :
assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)));
expected
- The expected date/time value.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the date/time.ChangeColumnAssert.hasValues(DateTimeValue)
T hasValues(DateTimeValue expectedAtStartPoint, DateTimeValue expectedAtEndPoint)
Example where the assertion verifies that the values of the first Column
of the Table
are equal to
12/23/2007 09:01AM at start point and 07/25/2002 00:00AM at end point :
assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)), DateTimeValue.of(DateValue.of(2002, 7, 25)));
expectedAtStartPoint
- The expected date/time at start point.expectedAtEndPoint
- The expected date/time at end point.this
assertion object.AssertionError
- If the values at start point and at end point are not equal to the corresponding dates/times.ChangeColumnAssert.hasValues(DateTimeValue, DateTimeValue)
Copyright © 2015 AssertJ. All Rights Reserved.