com.exoftware.exactor.command.web
Class CheckLinkNotPresentWithText
java.lang.Object
junit.framework.Assert
com.exoftware.exactor.Command
com.exoftware.exactor.command.web.WebCommand
com.exoftware.exactor.command.web.CheckLinkNotPresentWithText
- public class CheckLinkNotPresentWithText
- extends WebCommand
Command wrapping jwebunit WebTester.assertLinkNotPresentWithText( String, int }
and WebTester.assertLinkNotPresentWithText( String }.
Usage example;
CheckLinkNotPresentWithText linkText [index]
- Author:
- Brian Swan
Method Summary |
void |
execute()
Execute the command. |
Methods inherited from class com.exoftware.exactor.Command |
addParameter, countParameters, getLineNumber, getName, getParameter, getParameter, getParameters, getScript, hasParameters, parametersAsString, resolveFileRelativeToScriptFile, setLineNumber, setName, setScript, substituteParameters |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckLinkNotPresentWithText
public CheckLinkNotPresentWithText()
execute
public void execute()
throws java.lang.Exception
- Execute the command. Check that no link containing the supplied text is present.
One parameter is expected, linkText. If more than one link with the same text is expected
an optional 0 based parameter can be supplied.
- Overrides:
execute
in class Command
- Throws:
java.lang.Exception
- is an error occurs.- See Also:
AssertionFailedError