openfuture.bugbase.test.access
Class JspAccessTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--junit.log4j.LoggedTestCase
                    |
                    +--openfuture.bugbase.test.common.BusinessTestCase
                          |
                          +--openfuture.bugbase.test.access.JspAccessTestCase
All Implemented Interfaces:
junit.framework.Test

public class JspAccessTestCase
extends BusinessTestCase

Test all JSPs that require a login, if the login is correctly requested.

Created: Wed Oct 31 16:04:12 2001

Version:
$Revision: 1.2 $
Author:
Wolfgang Reissenberger

Fields inherited from class junit.log4j.LoggedTestCase
category, isLog4jInClasspath
 
Constructor Summary
JspAccessTestCase(java.lang.String name)
          Creates a new JspAccessTestCase instance.
 
Method Summary
protected  void callPage(java.lang.String jsp, java.lang.String action)
          Login into the given JSP page.
 void testEditBugReport()
          Test, if the bug report edit page EditBugReport.jsp is access protected.
 void testEditRegistration()
          Test, if the edit registration page EditRegistration.jsp is access protected.
 void testIndex()
          Test, if the entry page index.jsp is access protected.
 void testNewBugReport()
          Test, if the new bug report page NewBugReport.jsp is access protected.
 void testSearchReports()
          Test, if the bug report search page SearchReports.jsp is access protected.
 void testViewReports()
          Test, if the bug reports view page ViewReports.jsp is access protected.
 
Methods inherited from class openfuture.bugbase.test.common.BusinessTestCase
callPage, createAdminUser, createCompleteBugReport, createCompleteBugReport, createDoctorUser, createNormalUser, createNormalUser, createUniqueUserId, fillReportForm, findForm, findLink, findLinkByText, getAdminUser, getClient, getDoctorUser, getNormalUser, getResourceBundle, getUniqueFilename, hasReasonKey, isUniqueUserId, login, login, loginPage, loginPage, logoff, logoffPage, searchUser, setAdminUser, setClient, setDefault, setDoctorUser, setNormalUser, setResourceBundle, setUp, tearDown
 
Methods inherited from class junit.log4j.LoggedTestCase
debug, debug, error, error, fatal, fatal, getProperties, info, info, setProperties, warn, warn
 
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

JspAccessTestCase

public JspAccessTestCase(java.lang.String name)
Creates a new JspAccessTestCase instance.
Parameters:
name - test case name
Method Detail

testNewBugReport

public void testNewBugReport()
                      throws java.lang.Exception
Test, if the new bug report page NewBugReport.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

testEditBugReport

public void testEditBugReport()
                       throws java.lang.Exception
Test, if the bug report edit page EditBugReport.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

testEditRegistration

public void testEditRegistration()
                          throws java.lang.Exception
Test, if the edit registration page EditRegistration.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

testSearchReports

public void testSearchReports()
                       throws java.lang.Exception
Test, if the bug report search page SearchReports.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

testViewReports

public void testViewReports()
                     throws java.lang.Exception
Test, if the bug reports view page ViewReports.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

testIndex

public void testIndex()
               throws java.lang.Exception
Test, if the entry page index.jsp is access protected.
Throws:
java.lang.Exception - if an error occurs

callPage

protected void callPage(java.lang.String jsp,
                        java.lang.String action)
                 throws java.lang.Exception
Login into the given JSP page. The page must contain a form with the given action string contained.
Parameters:
jsp - JSP page name
action - action substring to be recognized
Throws:
java.lang.Exception - if an error occurs


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.