Java Doc for WebIntegrationUnitTestCase.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » web » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » testsuite » org.jboss.test.web.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.web.test.WebIntegrationUnitTestCase

All known Subclasses:   org.jboss.test.jacc.test.WebIntegrationUnitTestCase,  org.jboss.test.securitymgr.test.WebIntegrationUnitTestCase,
WebIntegrationUnitTestCase
public class WebIntegrationUnitTestCase extends JBossTestCase (Code)
Tests of servlet container integration into the JBoss server. This test requires than a web container be integrated into the JBoss server. The tests currently do NOT use the java.net.HttpURLConnection and associated http client and these do not return valid HTTP error codes so if a failure occurs it is best to connect the webserver using a browser to look for additional error info. The secure access tests require a user named 'jduke' with a password of 'theduke' with a role of 'AuthorizedUser' in the servlet container.
author:
   Scott.Stark@jboss.org
version:
   $Revision: 62620 $



Constructor Summary
public  WebIntegrationUnitTestCase(String name)
    

Method Summary
public static  Testsuite()
     Setup the test suite.
public  voidtestBadEarRedeploy()
    
public  voidtestBadWarRedeploy()
     Deploy a bad war and then redploy with a fixed war to test failed war cleanup.
public  voidtestClientLoginServlet()
    
public  voidtestEJBOnStartupServlet()
    
public  voidtestEJBServlet()
    
public  voidtestENCServlet()
    
public  voidtestEntityServlet()
    
public  voidtestHttpSessionListener()
    
public  voidtestIncludeEJB()
    
public  voidtestJSPClasspath()
    
public  voidtestJava2ClassLoadingComplianceOverride()
    
public  voidtestJava2ClassLoadingComplianceOverrideULR()
    
public  voidtestNotJbosstest()
    
public  voidtestNotJbosstest2()
     Deploy a second ear that include a notjbosstest-web.war to test ears with the same war names conflicting.
public  voidtestRealPath()
    
public  voidtestSecureEJBAccess()
    
public  voidtestSecureServlet()
    
public  voidtestSecureServlet2()
    
public  voidtestSecureServletAndUnsecureAccess()
    
public  voidtestSecureServletWithBadPass()
    
public  voidtestSecureServletWithNoLogin()
    
public  voidtestSecuredEntityFacadeServlet()
    
public  voidtestServletInJar()
     Access the http://{host}/jbosstest/SimpleServlet to test that servlets in the WEB-INF/lib jar.
public  voidtestSnoopJSP()
    
public  voidtestSnoopJSPByMapping()
    
public  voidtestSnoopJSPByPattern()
    
public  voidtestSpeedServlet()
    
public  voidtestStatefulSessionServlet()
    
public  voidtestSubjectServlet()
    
public  voidtestUnauthorizedAccess()
    
public  voidtestUnsecureAnonEJBAccess()
     Access the http://{host}/jbosstest/UnsecureEJBAccess with method=unchecked to test that an unsecured servlet can access a secured EJB method that only requires an authenticated user.
public  voidtestUnsecureEJBAccess()
     Access the http://{host}/jbosstest/UnsecureEJBAccess with method=echo to test that an unsecured servlet cannot access a secured EJB method that requires a valid permission.
public  voidtestUnsecureRunAsServlet()
    
public  voidtestUnsecureRunAsServletWithPrincipalName()
     Access the http://{host}/jbosstest/UnsecureRunAsServletWithPrincipalName to test that an unsecured servlet can access a secured EJB method by using a run-as role.
public  voidtestUnsecureRunAsServletWithPrincipalNameAndRoles()
     Access the http://{host}/jbosstest/UnsecureRunAsServletWithPrincipalNameAndRoles to test that an unsecured servlet can access a secured EJB method by using a run-as role.
public  voidtestUserInRoleServlet()
     Access the http://{host}/jbosstest/restricted/UserInRoleServlet to test isUserInRole.
public  voidtestUserTransactionServlet()
    
public  voidtestWarManifest()
     Test of a war that accesses classes referred to via the war manifest classpath.


Constructor Detail
WebIntegrationUnitTestCase
public WebIntegrationUnitTestCase(String name)(Code)




Method Detail
suite
public static Test suite() throws Exception(Code)
Setup the test suite.



testBadEarRedeploy
public void testBadEarRedeploy() throws Exception(Code)



testBadWarRedeploy
public void testBadWarRedeploy() throws Exception(Code)
Deploy a bad war and then redploy with a fixed war to test failed war cleanup. Access the http://{host}/redeploy/index.html



testClientLoginServlet
public void testClientLoginServlet() throws Exception(Code)
Access the http://{host}/jbosstest/ClientLoginServlet



testEJBOnStartupServlet
public void testEJBOnStartupServlet() throws Exception(Code)
Access the http://{host}/jbosstest/EJBOnStartupServlet



testEJBServlet
public void testEJBServlet() throws Exception(Code)
Access the http://{host}/jbosstest/EJBServlet



testENCServlet
public void testENCServlet() throws Exception(Code)
Access the http://{host}/jbosstest/ENCServlet



testEntityServlet
public void testEntityServlet() throws Exception(Code)
Access the http://{host}/jbosstest/EntityServlet



testHttpSessionListener
public void testHttpSessionListener() throws Exception(Code)
Access the http://{host}/jbosstest/APIServlet to test the HttpSessionListener events



testIncludeEJB
public void testIncludeEJB() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/include_ejb.jsp



testJSPClasspath
public void testJSPClasspath() throws Exception(Code)
Access the http://{host}/jbosstest/classpath.jsp



testJava2ClassLoadingComplianceOverride
public void testJava2ClassLoadingComplianceOverride() throws Exception(Code)
Validate a war level override of the java2ClassLoadingComplianceOverride flag to true with a useJBossWebLoader = false
throws:
  Exception -



testJava2ClassLoadingComplianceOverrideULR
public void testJava2ClassLoadingComplianceOverrideULR() throws Exception(Code)
Validate a war level override of the java2ClassLoadingComplianceOverride flag to true with a useJBossWebLoader = true
throws:
  Exception -



testNotJbosstest
public void testNotJbosstest() throws Exception(Code)
Access the http://{host}/jbosstest-not/unrestricted/SecureServlet



testNotJbosstest2
public void testNotJbosstest2() throws Exception(Code)
Deploy a second ear that include a notjbosstest-web.war to test ears with the same war names conflicting. Access the http://{host}/jbosstest-not2/unrestricted/SecureServlet



testRealPath
public void testRealPath() throws Exception(Code)
Access the http://{host}/jbosstest/APIServlet to test the getRealPath method



testSecureEJBAccess
public void testSecureEJBAccess() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecureEJBAccess



testSecureServlet
public void testSecureServlet() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecureServlet



testSecureServlet2
public void testSecureServlet2() throws Exception(Code)
Access the http://{host}/jbosstest/restricted2/SecureServlet



testSecureServletAndUnsecureAccess
public void testSecureServletAndUnsecureAccess() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecureServlet



testSecureServletWithBadPass
public void testSecureServletWithBadPass() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecureServlet



testSecureServletWithNoLogin
public void testSecureServletWithNoLogin() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecureServlet



testSecuredEntityFacadeServlet
public void testSecuredEntityFacadeServlet() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SecuredEntityFacadeServlet



testServletInJar
public void testServletInJar() throws Exception(Code)
Access the http://{host}/jbosstest/SimpleServlet to test that servlets in the WEB-INF/lib jar.



testSnoopJSP
public void testSnoopJSP() throws Exception(Code)
Access the http://{host}/jbosstest/snoop.jsp



testSnoopJSPByMapping
public void testSnoopJSPByMapping() throws Exception(Code)
Access the http://{host}/jbosstest/test-jsp-mapping



testSnoopJSPByPattern
public void testSnoopJSPByPattern() throws Exception(Code)
Access the http://{host}/jbosstest/snoop.jsp



testSpeedServlet
public void testSpeedServlet() throws Exception(Code)
Access the http://{host}/jbosstest/SpeedServlet



testStatefulSessionServlet
public void testStatefulSessionServlet() throws Exception(Code)
Access the http://{host}/jbosstest/StatefulSessionServlet



testSubjectServlet
public void testSubjectServlet() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/SubjectServlet



testUnauthorizedAccess
public void testUnauthorizedAccess() throws Exception(Code)
JBAS-3279: Authenticated user can bypass declarative role checks for servlets



testUnsecureAnonEJBAccess
public void testUnsecureAnonEJBAccess() throws Exception(Code)
Access the http://{host}/jbosstest/UnsecureEJBAccess with method=unchecked to test that an unsecured servlet can access a secured EJB method that only requires an authenticated user. This requires unauthenticated identity support by the web security domain.



testUnsecureEJBAccess
public void testUnsecureEJBAccess() throws Exception(Code)
Access the http://{host}/jbosstest/UnsecureEJBAccess with method=echo to test that an unsecured servlet cannot access a secured EJB method that requires a valid permission. This should fail.



testUnsecureRunAsServlet
public void testUnsecureRunAsServlet() throws Exception(Code)



testUnsecureRunAsServletWithPrincipalName
public void testUnsecureRunAsServletWithPrincipalName() throws Exception(Code)
Access the http://{host}/jbosstest/UnsecureRunAsServletWithPrincipalName to test that an unsecured servlet can access a secured EJB method by using a run-as role. This should also have a custom run-as principal name.
throws:
  Exception -



testUnsecureRunAsServletWithPrincipalNameAndRoles
public void testUnsecureRunAsServletWithPrincipalNameAndRoles() throws Exception(Code)
Access the http://{host}/jbosstest/UnsecureRunAsServletWithPrincipalNameAndRoles to test that an unsecured servlet can access a secured EJB method by using a run-as role. This should also have a custom run-as principal name and additional roles.
throws:
  Exception -



testUserInRoleServlet
public void testUserInRoleServlet() throws Exception(Code)
Access the http://{host}/jbosstest/restricted/UserInRoleServlet to test isUserInRole.



testUserTransactionServlet
public void testUserTransactionServlet() throws Exception(Code)
Access the http://{host}/jbosstest/UserTransactionServlet



testWarManifest
public void testWarManifest() throws Exception(Code)
Test of a war that accesses classes referred to via the war manifest classpath. Access the http://{host}/manifest/classpath.jsp



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.