com.atlassian.jira.functest.framework.assertions
Class HTMLAssertionsImpl
java.lang.Object
com.atlassian.jira.functest.framework.assertions.HTMLAssertionsImpl
- All Implemented Interfaces:
- HTMLAssertions
public class HTMLAssertionsImpl
- extends Object
- implements HTMLAssertions
HTMLAssertions implementation.
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLAssertionsImpl
public HTMLAssertionsImpl()
assertContains
public void assertContains(String original,
String expected)
- Description copied from interface:
HTMLAssertions
- The original should contain the expected text, regardless of whether it is encoded or not.
- Specified by:
assertContains
in interface HTMLAssertions
- Parameters:
original
- the response, may be HTML encoded.expected
- the expected text, not encoded.
assertResponseContains
public void assertResponseContains(net.sourceforge.jwebunit.WebTester tester,
String expected)
- Description copied from interface:
HTMLAssertions
- 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.
- Specified by:
assertResponseContains
in interface HTMLAssertions
- Parameters:
tester
- the client that contains the response, may be HTML encoded.expected
- the expected text, not encoded.
Copyright © 2002-2014 Atlassian. All Rights Reserved.