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 AssertOnValueInequality<T extends AssertOnValueInequality<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(Character expected)
Verifies that the value is not equal to a character.
|
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(Object expected)
Verifies that the value is not equal to a object.
|
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 |
isNotEqualTo(UUID expected)
Verifies that the value is not equal to an UUID.
|
T |
isNotZero()
Verifies that the value is not equal to zero.
|
T isNotEqualTo(Object 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 french Locale :
assertThat(table).row().value().isNotEqualTo(Locale.FRENCH);
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 french Locale :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(Locale.FRENCH);
expected - The expected object value.this assertion object.AssertionError - If the value is equal to the object in parameter.AbstractValueAssert.isNotEqualTo(Object),
AbstractAssertWithValues.isNotEqualTo(Object)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(Character 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 character :
assertThat(table).row().value().isNotEqualTo('c');
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 character :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo('c');
expected - The expected character value.this assertion object.AssertionError - If the value is equal to the character in parameter.AbstractValueAssert.isNotEqualTo(Character),
AbstractAssertWithValues.isNotEqualTo(Character)T isNotEqualTo(UUID expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to an UUID :
assertThat(table).row().value().isNotEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
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 an UUID :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
expected - The expected UUID value.this assertion object.AssertionError - If the value is equal to the UUID in parameter.AbstractValueAssert.isNotEqualTo(UUID),
AbstractAssertWithValues.isNotEqualTo(UUID)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–2017 AssertJ. All rights reserved.