| Modifier and Type | Method and Description |
|---|---|
T |
assertContains(Collection collection,
Object object,
String message)
Asserts that a collection contains an object
|
T |
assertContains(String text,
String fragment,
String message)
Asserts that one String is contained in another
|
T |
assertEnabled(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is enabled on the page
|
T |
assertEquals(boolean actual,
boolean expected)
Asserts that two booleans are equal.
|
T |
assertEquals(boolean actual,
boolean expected,
String message)
Asserts that two booleans are equal.
|
T |
assertEquals(byte[] actual,
byte[] expected)
Asserts that two arrays contain the same elements in the same order.
|
T |
assertEquals(byte[] actual,
byte[] expected,
String message)
Asserts that two arrays contain the same elements in the same order.
|
T |
assertEquals(byte actual,
byte expected)
Asserts that two bytes are equal.
|
T |
assertEquals(byte actual,
byte expected,
String message)
Asserts that two bytes are equal.
|
T |
assertEquals(char actual,
char expected)
Asserts that two chars are equal.
|
T |
assertEquals(char actual,
char expected,
String message)
Asserts that two chars are equal.
|
T |
assertEquals(Collection<?> actual,
Collection<?> expected)
Asserts that two collections contain the same elements in the same order.
|
T |
assertEquals(Collection<?> actual,
Collection<?> expected,
String message)
Asserts that two collections contain the same elements in the same order.
|
T |
assertEquals(double actual,
double expected,
double delta)
Asserts that two doubles are equal concerning a delta.
|
T |
assertEquals(double actual,
double expected,
double delta,
String message)
Asserts that two doubles are equal concerning a delta.
|
T |
assertEquals(float actual,
float expected,
float delta)
Asserts that two floats are equal concerning a delta.
|
T |
assertEquals(float actual,
float expected,
float delta,
String message)
Asserts that two floats are equal concerning a delta.
|
T |
assertEquals(int actual,
int expected)
Asserts that two ints are equal.
|
T |
assertEquals(int actual,
int expected,
String message)
Asserts that two ints are equal.
|
T |
assertEquals(Iterable<?> actual,
Iterable<?> expected)
Asserts that two iterables return iterators with the same elements in the same order.
|
T |
assertEquals(Iterable<?> actual,
Iterable<?> expected,
String message)
Asserts that two iterables return iterators with the same elements in the same order.
|
T |
assertEquals(Iterator<?> actual,
Iterator<?> expected)
Asserts that two iterators return the same elements in the same order.
|
T |
assertEquals(Iterator<?> actual,
Iterator<?> expected,
String message)
Asserts that two iterators return the same elements in the same order.
|
T |
assertEquals(long actual,
long expected)
Asserts that two longs are equal.
|
T |
assertEquals(long actual,
long expected,
String message)
Asserts that two longs are equal.
|
T |
assertEquals(Map<?,?> actual,
Map<?,?> expected)
Asserts that two maps are equal.
|
T |
assertEquals(Object[] actual,
Object[] expected)
Asserts that two arrays contain the same elements in the same order.
|
T |
assertEquals(Object[] actual,
Object[] expected,
String message)
Asserts that two arrays contain the same elements in the same order.
|
T |
assertEquals(Object actual,
Object expected)
Asserts that two objects are equal.
|
T |
assertEquals(Object actual,
Object expected,
String message)
Asserts that two objects are equal.
|
T |
assertEquals(Set<?> actual,
Set<?> expected)
Asserts that two sets are equal.
|
T |
assertEquals(Set<?> actual,
Set<?> expected,
String message)
Asserts that two sets are equal.
|
T |
assertEquals(short actual,
short expected)
Asserts that two shorts are equal.
|
T |
assertEquals(short actual,
short expected,
String message)
Asserts that two shorts are equal.
|
T |
assertEquals(String actual,
String expected)
Asserts that two Strings are equal.
|
T |
assertEquals(String actual,
String expected,
String message)
Asserts that two Strings are equal.
|
T |
assertEqualsNoOrder(Object[] actual,
Object[] expected)
Asserts that two arrays contain the same elements in no particular order.
|
T |
assertEqualsNoOrder(Object[] actual,
Object[] expected,
String message)
Asserts that two arrays contain the same elements in no particular order.
|
T |
assertFalse(boolean condition)
Asserts that a condition is false.
|
T |
assertFalse(boolean condition,
String message)
Asserts that a condition is false.
|
T |
assertNotContains(Collection collection,
Object object,
String message)
Asserts that a collection does not contains an object
|
T |
assertNotContains(String text,
String fragment,
String message)
Asserts that one String is not contained in another
|
T |
assertNotEnabled(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is not enabled on the page
|
T |
assertNotEquals(double actual1,
double actual2,
double delta)
Asserts that two doubles are not equal concerning a delta.
|
T |
assertNotEquals(double actual1,
double actual2,
double delta,
String message)
Asserts that two doubles are not equal concerning a delta.
|
T |
assertNotEquals(float actual1,
float actual2,
float delta)
Asserts that two floats are not equal concerning a delta.
|
T |
assertNotEquals(float actual1,
float actual2,
float delta,
String message)
Asserts that two floats are not equal concerning a delta.
|
T |
assertNotEquals(Object actual1,
Object actual2)
Assert not equals
|
T |
assertNotEquals(Object actual1,
Object actual2,
String message)
Assert not equals
|
T |
assertNotNull(Object object)
Asserts that an object isn't null.
|
T |
assertNotNull(Object object,
String message)
Asserts that an object isn't null.
|
T |
assertNotPresent(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is not present on the page
|
T |
assertNotSame(Object actual,
Object expected)
Asserts that two objects do not refer to the same object.
|
T |
assertNotSame(Object actual,
Object expected,
String message)
Asserts that two objects do not refer to the same objects.
|
T |
assertNotVisible(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is not visible on the page
|
T |
assertNull(Object object)
Asserts that an object is null.
|
T |
assertNull(Object object,
String message)
Asserts that an object is null.
|
T |
assertPresent(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is present on the page
|
T |
assertSame(Object actual,
Object expected)
Asserts that two objects refer to the same object.
|
T |
assertSame(Object actual,
Object expected,
String message)
Asserts that two objects refer to the same object.
|
T |
assertTextEndsWith(String text,
String fragment,
String message)
Asserts that one String ends with another
|
T |
assertTextStartsWith(String text,
String fragment,
String message)
Asserts that one String starts with another
|
T |
assertTrue(boolean condition)
Asserts that a condition is true.
|
T |
assertTrue(boolean condition,
String message)
Asserts that a condition is true.
|
T |
assertVisible(net.thucydides.core.pages.WebElementFacade element,
String message)
Asserts that WebElementFacade is visible on the page
|
T |
fail()
Fails a test with no message.
|
T |
fail(String message)
Fails a test with the given message.
|
T |
fail(String message,
Throwable realCause)
Fails a test with the given message and wrapping the original exception.
|
public T assertTrue(boolean condition, String message)
condition - the condition to evaluatemessage - the assertion error messagepublic T assertTrue(boolean condition)
condition - the condition to evaluatepublic T assertFalse(boolean condition, String message)
condition - the condition to evaluatemessage - the assertion error messagepublic T assertFalse(boolean condition)
condition - the condition to evaluatepublic T fail(String message, Throwable realCause)
message - the assertion error messagerealCause - the original exceptionpublic T fail(String message)
message - the assertion error messagepublic T fail()
public T assertEquals(Object actual, Object expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Object actual, Object expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(String actual, String expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(String actual, String expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(double actual, double expected, double delta, String message)
actual - the actual valueexpected - the expected valuedelta - the absolute tolerable difference between the actual and expected valuesmessage - the assertion error messagepublic T assertEquals(double actual, double expected, double delta)
actual - the actual valueexpected - the expected valuedelta - the absolute tolerable difference between the actual and expected valuespublic T assertEquals(float actual, float expected, float delta, String message)
actual - the actual valueexpected - the expected valuedelta - the absolute tolerable difference between the actual and expected valuesmessage - the assertion error messagepublic T assertEquals(float actual, float expected, float delta)
actual - the actual valueexpected - the expected valuedelta - the absolute tolerable difference between the actual and expected valuespublic T assertEquals(long actual, long expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(long actual, long expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(boolean actual, boolean expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(boolean actual, boolean expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(byte actual, byte expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(byte actual, byte expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(char actual, char expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(char actual, char expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(short actual, short expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(short actual, short expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(int actual, int expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(int actual, int expected)
actual - the actual valueexpected - the expected valuepublic T assertNotNull(Object object)
object - the assertion objectpublic T assertNotNull(Object object, String message)
object - the assertion objectmessage - the assertion error messagepublic T assertNull(Object object)
object - the assertion objectpublic T assertNull(Object object, String message)
object - the assertion objectmessage - the assertion error messagepublic T assertSame(Object actual, Object expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertSame(Object actual, Object expected)
actual - the actual valueexpected - the expected valuepublic T assertNotSame(Object actual, Object expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertNotSame(Object actual, Object expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(Collection<?> actual, Collection<?> expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(Collection<?> actual, Collection<?> expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Iterator<?> actual, Iterator<?> expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(Iterator<?> actual, Iterator<?> expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Iterable<?> actual, Iterable<?> expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(Iterable<?> actual, Iterable<?> expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Object[] actual, Object[] expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEqualsNoOrder(Object[] actual, Object[] expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Object[] actual, Object[] expected)
actual - the actual valueexpected - the expected valuepublic T assertEqualsNoOrder(Object[] actual, Object[] expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(byte[] actual, byte[] expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(byte[] actual, byte[] expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Set<?> actual, Set<?> expected)
actual - the actual valueexpected - the expected valuepublic T assertEquals(Set<?> actual, Set<?> expected, String message)
actual - the actual valueexpected - the expected valuemessage - the assertion error messagepublic T assertEquals(Map<?,?> actual, Map<?,?> expected)
actual - the actual valueexpected - the expected valuepublic T assertNotEquals(Object actual1, Object actual2, String message)
actual1 - the first valueactual2 - the second valuemessage - the assertion error messagepublic T assertNotEquals(Object actual1, Object actual2)
actual1 - the first valueactual2 - the second valuepublic T assertNotEquals(float actual1, float actual2, float delta, String message)
actual1 - the first valueactual2 - the second valuedelta - the absolute tolerable difference between the actual and expected valuesmessage - the assertion error messagepublic T assertNotEquals(float actual1, float actual2, float delta)
actual1 - the first valueactual2 - the second valuedelta - the absolute tolerable difference between the actual and expected valuespublic T assertNotEquals(double actual1, double actual2, double delta, String message)
actual1 - the first valueactual2 - the second valuedelta - the absolute tolerable difference between the actual and expected valuesmessage - the assertion error messagepublic T assertNotEquals(double actual1, double actual2, double delta)
actual1 - the first valueactual2 - the second valuedelta - the absolute tolerable difference between the actual and expected valuespublic T assertContains(String text, String fragment, String message)
text - String to search infragment - String to search formessage - the assertion error messagepublic T assertNotContains(String text, String fragment, String message)
text - String to search infragment - String to search formessage - the assertion error messagepublic T assertTextStartsWith(String text, String fragment, String message)
text - String to search throughfragment - String to search formessage - the assertion error messagepublic T assertTextEndsWith(String text, String fragment, String message)
text - String to search throughfragment - String to search formessage - the assertion error messagepublic T assertContains(Collection collection, Object object, String message)
collection - Collection of elementsobject - actual object expected to be present in collectionmessage - the assertion error messagepublic T assertNotContains(Collection collection, Object object, String message)
collection - Collection of elementsobject - actual object expected to be present in collectionmessage - the assertion error messagepublic T assertVisible(net.thucydides.core.pages.WebElementFacade element, String message)
element - element to verifymessage - the assertion error messagepublic T assertNotVisible(net.thucydides.core.pages.WebElementFacade element, String message)
element - element to verifymessage - the assertion error messagepublic T assertEnabled(net.thucydides.core.pages.WebElementFacade element, String message)
element - element to verifymessage - the assertion error messagepublic T assertNotEnabled(net.thucydides.core.pages.WebElementFacade element, String message)
element - element to verifymessage - the assertion error messagepublic T assertPresent(net.thucydides.core.pages.WebElementFacade element, String message)
element - element to verifymessage - the assertion error messageCopyright © 2015. All rights reserved.