org.apache.shale.usecases.systest
Class UseCasesTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.usecases.systest.AbstractTestCase
              extended by org.apache.shale.usecases.systest.UseCasesTestCase
All Implemented Interfaces:
junit.framework.Test

public class UseCasesTestCase
extends AbstractTestCase

Simple integration test to validate access to the main menu.


Field Summary
 
Fields inherited from class org.apache.shale.usecases.systest.AbstractTestCase
page, url, webClient
 
Constructor Summary
UseCasesTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void setUp()
          Set up the instance variables required for this test case.
static junit.framework.Test suite()
          Return the set of tests included in this test suite.
protected  void tearDown()
          Tear down instance variables required by this test case.
 void testForm()
          Verify the availability of an appropriate form.
 void testSubview()
          Verify the availability of an appropriate subview hyperlink.
 void testTitle()
          Verify the title of the returned page.
 
Methods inherited from class org.apache.shale.usecases.systest.AbstractTestCase
body, element, form, head, link, page, submit, title, url
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UseCasesTestCase

public UseCasesTestCase(String name)

Construct a new instance of this test case.

Parameters:
name - Name of the new test case
Method Detail

setUp

protected void setUp()
              throws Exception

Set up the instance variables required for this test case.

Overrides:
setUp in class AbstractTestCase
Throws:
Exception

suite

public static junit.framework.Test suite()

Return the set of tests included in this test suite.


tearDown

protected void tearDown()
                 throws Exception

Tear down instance variables required by this test case.

Overrides:
tearDown in class AbstractTestCase
Throws:
Exception

testForm

public void testForm()
              throws Exception

Verify the availability of an appropriate form.

Throws:
Exception

testSubview

public void testSubview()
                 throws Exception

Verify the availability of an appropriate subview hyperlink.

Throws:
Exception

testTitle

public void testTitle()
               throws Exception

Verify the title of the returned page.

Throws:
Exception


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.