com.atlassian.confluence.it
Class Assertions

java.lang.Object
  extended by junit.framework.Assert
      extended by com.atlassian.confluence.it.Assertions

public class Assertions
extends junit.framework.Assert


Constructor Summary
Assertions()
           
 
Method Summary
static void assertCollectionsEqual(Collection expected, Collection actual)
          Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, not(startsWith(expectedSubstring)));
static void assertContains(String expectedSubstring, String actual)
          Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, containsString(expectedSubstring));
static void assertContainsLinkWithText(String linkText, String container)
          Asserts that a link with the supplied text is present in the container string.
static void assertContainsRegex(String regex, String actual)
          Deprecated. Use Hamcrest-style matchers
static void assertDoesNotContain(String unexpectedSubstring, String actual)
          Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, not(containsString(expectedSubstring)));
static void assertDoesNotContain(String messageStart, String unexpectedSubstring, String actual)
          Deprecated. Use Hamcrest-style matchers
static void assertEndsWith(String expectedSuffix, String actual)
          Deprecated. Use Hamcrest-style matchers
static void assertStartsWith(String expectedPrefix, String actual)
          Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, startsWith(expectedSubstring));
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assertions

public Assertions()
Method Detail

assertContains

@Deprecated
public static void assertContains(String expectedSubstring,
                                             String actual)
Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, containsString(expectedSubstring));


assertDoesNotContain

@Deprecated
public static void assertDoesNotContain(String unexpectedSubstring,
                                                   String actual)
Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, not(containsString(expectedSubstring)));


assertStartsWith

@Deprecated
public static void assertStartsWith(String expectedPrefix,
                                               String actual)
Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, startsWith(expectedSubstring));


assertCollectionsEqual

@Deprecated
public static void assertCollectionsEqual(Collection expected,
                                                     Collection actual)
Deprecated. 

Use Hamcrest-style matchers. Example:

assertThat(actual, not(startsWith(expectedSubstring)));


assertContainsRegex

@Deprecated
public static void assertContainsRegex(String regex,
                                                  String actual)
Deprecated. Use Hamcrest-style matchers

Asserts that all or part of the actual value is matched by the supplied regular expression. Note matching across multiple lines requires (?s) to be included in the regular expression.

Parameters:
regex - the expected value as a regular expression.
actual - the returned value.

assertContainsLinkWithText

public static void assertContainsLinkWithText(String linkText,
                                              String container)
Asserts that a link with the supplied text is present in the container string.

Parameters:
linkText - link text to search for
container - string to search for the link inside

assertEndsWith

@Deprecated
public static void assertEndsWith(String expectedSuffix,
                                             String actual)
Deprecated. Use Hamcrest-style matchers


assertDoesNotContain

@Deprecated
public static void assertDoesNotContain(String messageStart,
                                                   String unexpectedSubstring,
                                                   String actual)
Deprecated. Use Hamcrest-style matchers



Copyright © 2003-2013 Atlassian. All Rights Reserved.