com.exoftware.exactor.command.web
Class CheckKeyInTable

java.lang.Object
  extended byjunit.framework.Assert
      extended bycom.exoftware.exactor.Command
          extended bycom.exoftware.exactor.command.web.WebCommand
              extended bycom.exoftware.exactor.command.web.CheckKeyInTable

public class CheckKeyInTable
extends WebCommand

Command wrapping jwebunit WebTester.assertKeyInTable( String, String }.

Usage example;

  
      CheckKeyInTable tableSummaryOrId key
  
 

Author:
Brian Swan

Constructor Summary
CheckKeyInTable()
           
 
Method Summary
 void execute()
          Execute the command.
 
Methods inherited from class com.exoftware.exactor.command.web.WebCommand
getWebTester
 
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
 

Constructor Detail

CheckKeyInTable

public CheckKeyInTable()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Execute the command. Check that the value of a given web resource is present in a specific table. Two parameters are expected, tableSummaryOrId, key.

Overrides:
execute in class Command
Throws:
java.lang.Exception - is an error occurs.
See Also:
AssertionFailedError