Java Doc for DefaultPolicyScannerTest.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » security » 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 » Apache Harmony Java SE » org package » org.apache.harmony.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.harmony.security.DefaultPolicyScannerTest

DefaultPolicyScannerTest
public class DefaultPolicyScannerTest extends TestCase (Code)
TODO Put your class description here




Method Summary
public static  voidmain(String[] args)
    
protected  voidsetUp()
    
public  voidtestHandleUnexpectedToken()
     Tests that both handleUnexpectedToken() methods throw proper InvalidFormatException exception.
public  voidtestReadGrantEntry()
     Tests readGrantEntry() for tokenizing all valid syntax variants.
public  voidtestReadGrantEntry_Empty()
     Tests readGrantEntry() for tokenizing all valid syntax variants.
public  voidtestReadGrantEntry_IOException()
     Tests that readGrantEntry() throws IOException if stream fails.
public  voidtestReadGrantEntry_Invalid()
    
public  voidtestReadKeystoreEntry()
     Tests readKeystoreEntry() for tokenizing all valid syntax variants.
public  voidtestReadKeystoreEntry_IOException()
     Tests that readKeystoreEntry() throws IOException if stream fails.
public  voidtestReadKeystoreEntry_Invalid()
    
public  voidtestReadPermissionEntries_Empty()
     Tests readPermissionEntries() for tokenizing empty list of permissions.
public  voidtestReadPermissionEntries_IOException()
     Tests that readPermissionEntries() throws IOException if stream fails.
public  voidtestReadPermissionEntries_Invalid()
    
public  voidtestReadPermissionEntries_List()
     Tests readPermissionEntries() for tokenizing valid syntax for a list of permissions.
public  voidtestReadPermissionEntries_Single()
     Tests readPermissionEntries() for tokenizing all valid syntax variants, for just one permission.
public  voidtestReadPrincipalEntry()
     Tests readPrincipalEntry() for tokenizing all valid syntax variants.
public  voidtestReadPrincipalEntry_IOException()
     Tests that readPrincipalEntry() throws IOException if stream fails.
public  voidtestReadPrincipalEntry_Invalid()
    
public  voidtestScanStream_Complex()
     Tests tokenization of valid policy sample with all possible elements.
public  voidtestScanStream_Empty()
    
public  voidtestScanStream_IOException()
     Tests that scanStream() throws IOException if stream fails.
public  voidtestScanStream_Invalid()
     Tests that scanStream() throws InvalidFormatException on invalid keywords.



Method Detail
main
public static void main(String[] args)(Code)



setUp
protected void setUp() throws Exception(Code)



testHandleUnexpectedToken
public void testHandleUnexpectedToken()(Code)
Tests that both handleUnexpectedToken() methods throw proper InvalidFormatException exception.



testReadGrantEntry
public void testReadGrantEntry() throws Exception(Code)
Tests readGrantEntry() for tokenizing all valid syntax variants.



testReadGrantEntry_Empty
public void testReadGrantEntry_Empty() throws Exception(Code)
Tests readGrantEntry() for tokenizing all valid syntax variants.



testReadGrantEntry_IOException
public void testReadGrantEntry_IOException() throws Exception(Code)
Tests that readGrantEntry() throws IOException if stream fails.



testReadGrantEntry_Invalid
public void testReadGrantEntry_Invalid() throws Exception(Code)
Tests that readGrantEntry() throws InvalidFormatException on invalid input



testReadKeystoreEntry
public void testReadKeystoreEntry() throws Exception(Code)
Tests readKeystoreEntry() for tokenizing all valid syntax variants.



testReadKeystoreEntry_IOException
public void testReadKeystoreEntry_IOException() throws Exception(Code)
Tests that readKeystoreEntry() throws IOException if stream fails.



testReadKeystoreEntry_Invalid
public void testReadKeystoreEntry_Invalid() throws Exception(Code)
Tests that readKeystoreEntry() throws InvalidFormatException on invalid input



testReadPermissionEntries_Empty
public void testReadPermissionEntries_Empty() throws Exception(Code)
Tests readPermissionEntries() for tokenizing empty list of permissions.



testReadPermissionEntries_IOException
public void testReadPermissionEntries_IOException() throws Exception(Code)
Tests that readPermissionEntries() throws IOException if stream fails.



testReadPermissionEntries_Invalid
public void testReadPermissionEntries_Invalid() throws Exception(Code)
Tests that readPermissionEntries() throws InvalidFormatException on invalid input



testReadPermissionEntries_List
public void testReadPermissionEntries_List() throws Exception(Code)
Tests readPermissionEntries() for tokenizing valid syntax for a list of permissions.



testReadPermissionEntries_Single
public void testReadPermissionEntries_Single() throws Exception(Code)
Tests readPermissionEntries() for tokenizing all valid syntax variants, for just one permission.



testReadPrincipalEntry
public void testReadPrincipalEntry() throws Exception(Code)
Tests readPrincipalEntry() for tokenizing all valid syntax variants.



testReadPrincipalEntry_IOException
public void testReadPrincipalEntry_IOException() throws Exception(Code)
Tests that readPrincipalEntry() throws IOException if stream fails.



testReadPrincipalEntry_Invalid
public void testReadPrincipalEntry_Invalid() throws Exception(Code)
Tests that readPrincipalEntry() throws InvalidFormatException on invalid input



testScanStream_Complex
public void testScanStream_Complex() throws Exception(Code)
Tests tokenization of valid policy sample with all possible elements.



testScanStream_Empty
public void testScanStream_Empty() throws Exception(Code)



testScanStream_IOException
public void testScanStream_IOException() throws Exception(Code)
Tests that scanStream() throws IOException if stream fails.



testScanStream_Invalid
public void testScanStream_Invalid() throws Exception(Code)
Tests that scanStream() throws InvalidFormatException on invalid keywords.



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