public class

Assertions

extends Assert
java.lang.Object
   ↳ junit.framework.Assert
     ↳ com.atlassian.confluence.Assertions

Class Overview

Import this class statically to use the assertions in your test case.

Summary

Public Constructors
Assertions()
Public Methods
static void assertCollectionsEqual(Collection expected, Collection actual)
static void assertContains(String expectedSubstring, String actual)
static void assertDoesNotContain(String unexpectedSubstring, String actual)
static void assertEndsWith(String expectedSuffix, String actual)
static <T> void assertHasEqualElements(Collection<T> expected, Collection<T> actual)
Asserts two collections contain the same elements with the same cardinality, regardless of the order of the items in the collection or the type of Collection.
static <T> void assertHasEqualElements(Collection<T> actual, T... expected)
Var-args version of assertHasEqualElements(Collection, Collection) with the arguments flipped for this purpose.
static void assertStartsWith(String expectedPrefix, String actual)
[Expand]
Inherited Methods
From class junit.framework.Assert
From class java.lang.Object

Public Constructors

public Assertions ()

Public Methods

public static void assertCollectionsEqual (Collection expected, Collection actual)

public static void assertContains (String expectedSubstring, String actual)

public static void assertDoesNotContain (String unexpectedSubstring, String actual)

public static void assertEndsWith (String expectedSuffix, String actual)

public static void assertHasEqualElements (Collection<T> expected, Collection<T> actual)

Asserts two collections contain the same elements with the same cardinality, regardless of the order of the items in the collection or the type of Collection.

public static void assertHasEqualElements (Collection<T> actual, T... expected)

Var-args version of assertHasEqualElements(Collection, Collection) with the arguments flipped for this purpose.

public static void assertStartsWith (String expectedPrefix, String actual)