@Deprecated public class Assertions extends junit.framework.Assert
Constructor and Description |
---|
Assertions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertCollectionsEqual(Collection expected,
Collection actual)
Deprecated.
Since 5.0
Use Hamcrest-style matchers. Example: assertThat(actual, not(startsWith(expectedSubstring))); |
static void |
assertContains(String expectedSubstring,
String actual)
Deprecated.
Since 5.0
Use Hamcrest-style matchers. Example: assertThat(actual, containsString(expectedSubstring)); |
static void |
assertContainsLinkWithText(String linkText,
String container)
Deprecated.
Asserts that a link with the supplied text is present in the container string.
|
static void |
assertContainsRegex(String regex,
String actual)
Deprecated.
Since 5.0 Use Hamcrest-style matchers
|
static void |
assertDoesNotContain(String unexpectedSubstring,
String actual)
Deprecated.
Since 5.0
Use Hamcrest-style matchers. Example: assertThat(actual, not(containsString(expectedSubstring))); |
static void |
assertDoesNotContain(String messageStart,
String unexpectedSubstring,
String actual)
Deprecated.
Since 5.0 Use Hamcrest-style matchers
|
static void |
assertEndsWith(String expectedSuffix,
String actual)
Deprecated.
Since 5.0 Use Hamcrest-style matchers
|
static void |
assertStartsWith(String expectedPrefix,
String actual)
Deprecated.
Since 5.0
Use Hamcrest-style matchers. Example: assertThat(actual, startsWith(expectedSubstring)); |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
@Deprecated public static void assertContains(String expectedSubstring, String actual)
Use Hamcrest-style matchers. Example:
assertThat(actual, containsString(expectedSubstring));
@Deprecated public static void assertDoesNotContain(String unexpectedSubstring, String actual)
Use Hamcrest-style matchers. Example:
assertThat(actual, not(containsString(expectedSubstring)));
@Deprecated public static void assertStartsWith(String expectedPrefix, String actual)
Use Hamcrest-style matchers. Example:
assertThat(actual, startsWith(expectedSubstring));
@Deprecated public static void assertCollectionsEqual(Collection expected, Collection actual)
Use Hamcrest-style matchers. Example:
assertThat(actual, not(startsWith(expectedSubstring)));
@Deprecated public static void assertContainsRegex(String regex, String actual)
actual
value is matched by the supplied regular expression. Note matching across multiple lines
requires (?s) to be included in the regular expression.regex
- the expected value as a regular expression.actual
- the returned value.public static void assertContainsLinkWithText(String linkText, String container)
linkText
- link text to search forcontainer
- string to search for the link inside@Deprecated public static void assertEndsWith(String expectedSuffix, String actual)
@Deprecated public static void assertDoesNotContain(String messageStart, String unexpectedSubstring, String actual)
Copyright © 2003–2016 Atlassian. All rights reserved.