net.sourceforge.jwebunit.tests
Class JWebUnitAPITestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by net.sourceforge.jwebunit.tests.JWebUnitAPITestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ButtonAssertionsTest, CharsetTest, CustomTesterTest, ExpectedTableAssertionsHtmlTest, ExpectedTableAssertionsXHtmlTest, FormAssertionsTest, FormAssertionsWithLabelTest, FormSubmissionTest, FramesAndWindowsTest, HelloWorldTest, HtmlParsingTest, IElementTest, ImageTest, JavaScriptEventsTest, JavaScriptTest, NavigationTest, NonHtmlContentTest, RedirectionTest, ResourceBundleAssertionsTest, ResponseServletTest, SelectOptionsTest, TableAssertionsTest, TestContextTest, WebAssertionsTest, WebCookieTest, XPathTest

public abstract class JWebUnitAPITestCase
extends net.sourceforge.jwebunit.junit.WebTestCase

This class is intended be used by all "testcase" classes that are used to test the functionality of the jwebunit core api. This isn't to be extended by end users of the jwebunit api.

Author:
Nicholas Neuberger

Field Summary
static java.lang.String HOST_PATH
           
static int JETTY_PORT
           
static java.lang.String JETTY_URL
           
protected static java.lang.Object[] NOARGS
           
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
JWebUnitAPITestCase()
           
JWebUnitAPITestCase(java.lang.String name)
           
JWebUnitAPITestCase(java.lang.String name, WebTester custom)
           
 
Method Summary
 void assertException(java.lang.Class<?> exceptionClass, java.lang.String methodName, java.lang.Object[] args)
           
 void assertFail(java.lang.String methodName, java.lang.Object arg)
           
 void assertFail(java.lang.String methodName, java.lang.Object[] args)
           
protected  void assertPass(java.lang.String methodName, java.lang.Object arg)
           
protected  void assertPass(java.lang.String methodName, java.lang.Object[] args)
           
 void assertPassFail(java.lang.String methodName, java.lang.Object[] passArgs, java.lang.Object[] failArgs)
           
 void assertPassFail(java.lang.String methodName, java.lang.Object passArg, java.lang.Object failArgs)
           
 void setUp()
           
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFieldsForLabel, getFormElementValue, getHeader, getImage, getLabeledFieldValue, getMessage, getMessage, getPageSource, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, tearDown, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
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, wait, wait, wait
 

Field Detail

NOARGS

protected static final java.lang.Object[] NOARGS

JETTY_PORT

public static final int JETTY_PORT
See Also:
Constant Field Values

JETTY_URL

public static final java.lang.String JETTY_URL
See Also:
Constant Field Values

HOST_PATH

public static final java.lang.String HOST_PATH
See Also:
Constant Field Values
Constructor Detail

JWebUnitAPITestCase

public JWebUnitAPITestCase(java.lang.String name,
                           WebTester custom)

JWebUnitAPITestCase

public JWebUnitAPITestCase(java.lang.String name)
Parameters:
name -

JWebUnitAPITestCase

public JWebUnitAPITestCase()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

assertPassFail

public void assertPassFail(java.lang.String methodName,
                           java.lang.Object passArg,
                           java.lang.Object failArgs)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable

assertPassFail

public void assertPassFail(java.lang.String methodName,
                           java.lang.Object[] passArgs,
                           java.lang.Object[] failArgs)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable

assertPass

protected void assertPass(java.lang.String methodName,
                          java.lang.Object arg)
                   throws java.lang.Throwable
Throws:
java.lang.Throwable

assertPass

protected void assertPass(java.lang.String methodName,
                          java.lang.Object[] args)
                   throws java.lang.Throwable
Throws:
java.lang.Throwable

assertFail

public void assertFail(java.lang.String methodName,
                       java.lang.Object arg)

assertFail

public void assertFail(java.lang.String methodName,
                       java.lang.Object[] args)

assertException

public void assertException(java.lang.Class<?> exceptionClass,
                            java.lang.String methodName,
                            java.lang.Object[] args)


Copyright © 2002-2011 SourceForge. All Rights Reserved.