com.atlassian.jira.functest.framework.assertions
Interface HTMLAssertions

All Known Implementing Classes:
HTMLAssertionsImpl

public interface HTMLAssertions

Assertions for HTML content that may or may not be HTML encoded.

Since:
v4.0.2

Method Summary
 void assertContains(String original, String expected)
          The original should contain the expected text, regardless of whether it is encoded or not.
 void assertResponseContains(net.sourceforge.jwebunit.WebTester tester, String expected)
          The original should contain the expected text, regardless of whether it is encoded or not.
 

Method Detail

assertContains

void assertContains(@NotNull
                    String original,
                    @NotNull
                    String expected)
The original should contain the expected text, regardless of whether it is encoded or not.

Parameters:
original - the response, may be HTML encoded.
expected - the expected text, not encoded.

assertResponseContains

void assertResponseContains(@NotNull
                            net.sourceforge.jwebunit.WebTester tester,
                            @NotNull
                            String expected)
The original should contain the expected text, regardless of whether it is encoded or not. Convenience method for getting the response text from the client.

Parameters:
tester - the client that contains the response, may be HTML encoded.
expected - the expected text, not encoded.


Copyright © 2002-2011 Atlassian. All Rights Reserved.