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 AssertOnValueNonEquality<T extends AssertOnValueNonEquality<T>>
Modifier and Type | Method and Description |
---|---|
T |
isNotEqualTo(Boolean expected)
Verifies that the value is not equal to a boolean.
|
T |
isNotEqualTo(byte[] expected)
Verifies that the value is not equal to a array of bytes.
|
T |
isNotEqualTo(DateTimeValue expected)
Verifies that the value is not equal to a date/time value.
|
T |
isNotEqualTo(DateValue expected)
Verifies that the value is not equal to a date value.
|
T |
isNotEqualTo(Number expected)
Verifies that the value is not equal to a number.
|
T |
isNotEqualTo(String expected)
Verifies that the value is not equal to a text.
|
T |
isNotEqualTo(TimeValue expected)
Verifies that the value is not equal to a time value.
|
T |
isNotZero()
Verifies that the value is not equal to zero.
|
T isNotEqualTo(Boolean expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to true boolean :
assertThat(table).row().value().isNotEqualTo(true);
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to true boolean :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(true);
expected
- The expected boolean value.this
assertion object.AssertionError
- If the value is equal to the boolean in parameter.AbstractValueAssert.isNotEqualTo(Boolean)
,
AbstractAssertWithValues.isNotEqualTo(Boolean)
T isNotEqualTo(byte[] expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(table).row().value().isNotEqualTo(bytes);
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(bytes);
expected
- The expected array of bytes value.this
assertion object.AssertionError
- If the value is equal to the array of bytes in parameter.AbstractValueAssert.isNotEqualTo(byte[])
,
AbstractAssertWithValues.isNotEqualTo(byte[])
T isNotEqualTo(DateTimeValue expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to a date/time value :
assertThat(table).row().value().isNotEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)));
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to a date/time value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)));
expected
- The expected date/time value.this
assertion object.AssertionError
- If the value is equal to the date/time value in parameter.AbstractValueAssert.isNotEqualTo(DateTimeValue)
,
AbstractAssertWithValues.isNotEqualTo(DateTimeValue)
T isNotEqualTo(DateValue expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to a date value :
assertThat(table).row().value().isNotEqualTo(DateValue.of(2014, 7, 7));
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to a date value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(DateValue.of(2014, 7, 7));
expected
- The expected date value.this
assertion object.AssertionError
- If the value is equal to the date value in parameter.AbstractValueAssert.isNotEqualTo(DateValue)
,
AbstractAssertWithValues.isNotEqualTo(DateValue)
T isNotEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to number 3 :
assertThat(table).row().value().isNotEqualTo(3);
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(3);
expected
- The expected number value.this
assertion object.AssertionError
- If the value is equal to the number in parameter.AbstractValueAssert.isNotEqualTo(Number)
,
AbstractAssertWithValues.isNotEqualTo(Number)
T isNotEqualTo(String expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to a text :
assertThat(table).row().value().isNotEqualTo("text");
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to a text :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo("text");
expected
- The expected text value.this
assertion object.AssertionError
- If the value is equal to the text in parameter.AbstractValueAssert.isNotEqualTo(String)
,
AbstractAssertWithValues.isNotEqualTo(String)
T isNotEqualTo(TimeValue expected)
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to a time value :
assertThat(table).row().value().isNotEqualTo(TimeValue.of(21, 29, 30));
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to a time value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(TimeValue.of(21, 29, 30));
expected
- The expected time value.this
assertion object.AssertionError
- If the value is equal to the time value in parameter.AbstractValueAssert.isNotEqualTo(TimeValue)
,
AbstractAssertWithValues.isNotEqualTo(TimeValue)
T isNotZero()
Example where the assertion verifies that the value in the first Column
of the first Row
of the
Table
is not equal to zero :
assertThat(table).row().value().isNotZero();
Example where the assertion verifies that the value in the first Column
of the Row
at end point
of the first Change
is not equal to zero :
assertThat(changes).change().rowAtEndPoint().value().isNotZero();
this
assertion object.AssertionError
- If the value is equal to zero.AbstractValueAssert.isNotZero()
,
AbstractAssertWithValues.isNotZero()
Copyright © 2015 AssertJ. All Rights Reserved.