Java Doc for PropertiesManagerTest.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » properties » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.properties 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jasig.portal.properties.PropertiesManagerTest

PropertiesManagerTest
public class PropertiesManagerTest extends TestCase (Code)
Test case for PropertiesManager. Exercises property accessor methods against a test properties file.
author:
   andrew.petro@yale.edu




Method Summary
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestGetMissingProperties()
     Test that the getMissingProperties() method reports missing properties.
public  voidtestGetPropertyAsBoolean()
     Test getPropertyAsBoolean().
public  voidtestGetPropertyAsBooleanMissingProperty()
     Test getting a missing property as a boolean: throws proper exception.
public  voidtestGetPropertyAsBooleanWithDefault()
     Test getPropertyAsBoolean with default value where property is present.
public  voidtestGetPropertyAsBooleanWithDefaultPropertyMissing()
     Test getPropertyAsBoolean with default value where property is absent.
public  voidtestGetPropertyAsByte()
     Test getPropertyAsByte().
public  voidtestGetPropertyAsByteBadValue()
     Test that getPropertyAsByte() throws proper runtime exception when the property value cannot be parsed as a byte.
public  voidtestGetPropertyAsByteMissingProperty()
     Test that getPropertyAsByte() throws proper runtime exception when property is missing.
public  voidtestGetPropertyAsByteWithDefault()
     Test getPropertyAsByte(String, byte) - default specified, property is present.
public  voidtestGetPropertyAsByteWithDefaultPropertyBad()
     Test getPropertyAsByte() with default value where property cannot be parsed as a byte.
public  voidtestGetPropertyAsByteWithDefaultPropertyMissing()
     Test getPropertyAsByte with default value where property is missing.
public  voidtestGetPropertyAsDouble()
    
public  voidtestGetPropertyAsDoubleBadValue()
     Test that getPropertyAsDouble() throws proper runtime exception when the property value cannot be parsed as a byte.
public  voidtestGetPropertyAsDoubleMissingProperty()
     Test getPropertyAsDouble() for proper handling of missing property.
public  voidtestGetPropertyAsDoubleWithDefault()
     Test getPropertyAsDouble(String, double) - default specified, property present.
public  voidtestGetPropertyAsDoubleWithDefaultPropertyBad()
     Test getPropertyAsDouble(String, double) - default specified, property bad.
public  voidtestGetPropertyAsDoubleWithDefaultPropertyMissing()
     Test getPropertyAsDouble(String, double) - default specified, property absent.
public  voidtestGetPropertyAsFloat()
    
public  voidtestGetPropertyAsFloatBadValue()
     Test that getPropertyAsFloat() throws proper runtime exception when the property value cannot be parsed as a float.
public  voidtestGetPropertyAsFloatMissingProperty()
     Test getPropertyAsFloat() for proper handling of missing property.
public  voidtestGetPropertyAsFloatWithDefault()
     Test getPropertyAsFloat(String, float) - default specified, property present.
public  voidtestGetPropertyAsFloatWithDefaultPropertyBad()
     Test getPropertyAsFloat(String, float) - default specified, property absent.
public  voidtestGetPropertyAsFloatWithDefaultPropertyMissing()
     Test getPropertyAsFloat(String, float) - default specified, property absent.
public  voidtestGetPropertyAsInt()
    
public  voidtestGetPropertyAsIntBadValue()
     Test that getPropertyAsInt() throws proper runtime exception when the property value cannot be parsed as an int.
public  voidtestGetPropertyAsIntMissingProperty()
     Test getPropertyAsInt() handling of missing property.
public  voidtestGetPropertyAsIntWithDefault()
     Test getPropertyAsInt(String, int) - default specified, property present.
public  voidtestGetPropertyAsIntWithDefaultPropertyBad()
     Test getPropertyAsInt(String, int) - default specified, property bad.
public  voidtestGetPropertyAsIntWithDefaultPropertyMissing()
     Test getPropertyAsInt(String, int) - default specified, property absent.
public  voidtestGetPropertyAsLong()
    
public  voidtestGetPropertyAsLongBadValue()
     Test that getPropertyAsLong() throws proper runtime exception when the property value cannot be parsed as a byte.
public  voidtestGetPropertyAsLongMissingProperty()
     Test proper error handing for getPropertyAsLong() for missing property.
public  voidtestGetPropertyAsLongWithDefault()
     Test getPropertyAsLong(String, long) - default specified, property present.
public  voidtestGetPropertyAsLongWithDefaultPropertyBad()
     Test getPropertyAsLong(String, long) - default specified, property bad.
public  voidtestGetPropertyAsLongWithDefaultPropertyMissing()
     Test getPropertyAsLong(String, long) - default specified, property absent.
public  voidtestGetPropertyAsShort()
    
public  voidtestGetPropertyAsShortBadValue()
     Test that getPropertyAsShort() throws proper runtime exception when the property value cannot be parsed as a short.
public  voidtestGetPropertyAsShortMissingProperty()
     Test proper exception throw from getPropertyAsShort() when property is missing.
public  voidtestGetPropertyAsShortWithDefault()
     Test getPropertyAsShort(String, short) - default specified, property present.
public  voidtestGetPropertyAsShortWithDefaultPropertyBad()
     Test getPropertyAsShort(String, short) - default specified, property bad.
public  voidtestGetPropertyAsShortWithDefaultPropertyMissing()
     Test getPropertyAsShort(String, short) - default specified, property absent.
public  voidtestGetPropertyString()
     Test the getProperty method.
public  voidtestGetPropertyUntrimmedLeadingWhitespace()
     This test demonstrates that getPropertyUntrimmed does *not* retain leading whitespace on property values.
public  voidtestGetPropertyUntrimmedMissingProperty()
     Test exception throw when property missing.
public  voidtestGetPropertyUntrimmedTrailingWhitespace()
     Test proper retention of trailing whitespace.
public  voidtestGetPropertyUntrimmedWithDefault()
     Test getPropertyUntrimmed() with default value where property is present.
public  voidtestGetPropertyUntrimmedWithDefaultPropertyMissing()
     Test getPropertyUntrimmed() with default value where property is missing.
public  voidtestGetPropertyWithDefault()
     Test getPropertyAsString with default value where property is present.
public  voidtestGetPropertyWithDefaultPropertyMissing()
     Test getPropertyAsString with default value where property is missing.



Method Detail
setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



testGetMissingProperties
public void testGetMissingProperties()(Code)
Test that the getMissingProperties() method reports missing properties.



testGetPropertyAsBoolean
public void testGetPropertyAsBoolean()(Code)
Test getPropertyAsBoolean(). Demonstrates behavior of defaulting to false when property value doesn't "look like" true.



testGetPropertyAsBooleanMissingProperty
public void testGetPropertyAsBooleanMissingProperty()(Code)
Test getting a missing property as a boolean: throws proper exception.



testGetPropertyAsBooleanWithDefault
public void testGetPropertyAsBooleanWithDefault()(Code)
Test getPropertyAsBoolean with default value where property is present.



testGetPropertyAsBooleanWithDefaultPropertyMissing
public void testGetPropertyAsBooleanWithDefaultPropertyMissing()(Code)
Test getPropertyAsBoolean with default value where property is absent.



testGetPropertyAsByte
public void testGetPropertyAsByte()(Code)
Test getPropertyAsByte().



testGetPropertyAsByteBadValue
public void testGetPropertyAsByteBadValue()(Code)
Test that getPropertyAsByte() throws proper runtime exception when the property value cannot be parsed as a byte.



testGetPropertyAsByteMissingProperty
public void testGetPropertyAsByteMissingProperty()(Code)
Test that getPropertyAsByte() throws proper runtime exception when property is missing.



testGetPropertyAsByteWithDefault
public void testGetPropertyAsByteWithDefault()(Code)
Test getPropertyAsByte(String, byte) - default specified, property is present.



testGetPropertyAsByteWithDefaultPropertyBad
public void testGetPropertyAsByteWithDefaultPropertyBad()(Code)
Test getPropertyAsByte() with default value where property cannot be parsed as a byte.



testGetPropertyAsByteWithDefaultPropertyMissing
public void testGetPropertyAsByteWithDefaultPropertyMissing()(Code)
Test getPropertyAsByte with default value where property is missing.



testGetPropertyAsDouble
public void testGetPropertyAsDouble()(Code)
Test getPropertyAsDouble()



testGetPropertyAsDoubleBadValue
public void testGetPropertyAsDoubleBadValue()(Code)
Test that getPropertyAsDouble() throws proper runtime exception when the property value cannot be parsed as a byte.



testGetPropertyAsDoubleMissingProperty
public void testGetPropertyAsDoubleMissingProperty()(Code)
Test getPropertyAsDouble() for proper handling of missing property. In particular, tests that throws UndeclaredPortalException when property missing.



testGetPropertyAsDoubleWithDefault
public void testGetPropertyAsDoubleWithDefault()(Code)
Test getPropertyAsDouble(String, double) - default specified, property present.



testGetPropertyAsDoubleWithDefaultPropertyBad
public void testGetPropertyAsDoubleWithDefaultPropertyBad()(Code)
Test getPropertyAsDouble(String, double) - default specified, property bad.



testGetPropertyAsDoubleWithDefaultPropertyMissing
public void testGetPropertyAsDoubleWithDefaultPropertyMissing()(Code)
Test getPropertyAsDouble(String, double) - default specified, property absent.



testGetPropertyAsFloat
public void testGetPropertyAsFloat()(Code)
Test getPropertyAsFloat()



testGetPropertyAsFloatBadValue
public void testGetPropertyAsFloatBadValue()(Code)
Test that getPropertyAsFloat() throws proper runtime exception when the property value cannot be parsed as a float.



testGetPropertyAsFloatMissingProperty
public void testGetPropertyAsFloatMissingProperty()(Code)
Test getPropertyAsFloat() for proper handling of missing property. In particular, tests that UndeclaredPortalException thrown in this case.



testGetPropertyAsFloatWithDefault
public void testGetPropertyAsFloatWithDefault()(Code)
Test getPropertyAsFloat(String, float) - default specified, property present.



testGetPropertyAsFloatWithDefaultPropertyBad
public void testGetPropertyAsFloatWithDefaultPropertyBad()(Code)
Test getPropertyAsFloat(String, float) - default specified, property absent.



testGetPropertyAsFloatWithDefaultPropertyMissing
public void testGetPropertyAsFloatWithDefaultPropertyMissing()(Code)
Test getPropertyAsFloat(String, float) - default specified, property absent.



testGetPropertyAsInt
public void testGetPropertyAsInt()(Code)
Test getPropertyAsInt()



testGetPropertyAsIntBadValue
public void testGetPropertyAsIntBadValue()(Code)
Test that getPropertyAsInt() throws proper runtime exception when the property value cannot be parsed as an int.



testGetPropertyAsIntMissingProperty
public void testGetPropertyAsIntMissingProperty()(Code)
Test getPropertyAsInt() handling of missing property. Verifies that throws UndeclaredPortalException.



testGetPropertyAsIntWithDefault
public void testGetPropertyAsIntWithDefault()(Code)
Test getPropertyAsInt(String, int) - default specified, property present.



testGetPropertyAsIntWithDefaultPropertyBad
public void testGetPropertyAsIntWithDefaultPropertyBad()(Code)
Test getPropertyAsInt(String, int) - default specified, property bad.



testGetPropertyAsIntWithDefaultPropertyMissing
public void testGetPropertyAsIntWithDefaultPropertyMissing()(Code)
Test getPropertyAsInt(String, int) - default specified, property absent.



testGetPropertyAsLong
public void testGetPropertyAsLong()(Code)
Test getPropertyAsLong()



testGetPropertyAsLongBadValue
public void testGetPropertyAsLongBadValue()(Code)
Test that getPropertyAsLong() throws proper runtime exception when the property value cannot be parsed as a byte.



testGetPropertyAsLongMissingProperty
public void testGetPropertyAsLongMissingProperty()(Code)
Test proper error handing for getPropertyAsLong() for missing property. In particular, test that throws UndeclaredPortalException when property missing.



testGetPropertyAsLongWithDefault
public void testGetPropertyAsLongWithDefault()(Code)
Test getPropertyAsLong(String, long) - default specified, property present.



testGetPropertyAsLongWithDefaultPropertyBad
public void testGetPropertyAsLongWithDefaultPropertyBad()(Code)
Test getPropertyAsLong(String, long) - default specified, property bad.



testGetPropertyAsLongWithDefaultPropertyMissing
public void testGetPropertyAsLongWithDefaultPropertyMissing()(Code)
Test getPropertyAsLong(String, long) - default specified, property absent.



testGetPropertyAsShort
public void testGetPropertyAsShort()(Code)
Test getPropertyAsShort()



testGetPropertyAsShortBadValue
public void testGetPropertyAsShortBadValue()(Code)
Test that getPropertyAsShort() throws proper runtime exception when the property value cannot be parsed as a short.



testGetPropertyAsShortMissingProperty
public void testGetPropertyAsShortMissingProperty()(Code)
Test proper exception throw from getPropertyAsShort() when property is missing.



testGetPropertyAsShortWithDefault
public void testGetPropertyAsShortWithDefault()(Code)
Test getPropertyAsShort(String, short) - default specified, property present.



testGetPropertyAsShortWithDefaultPropertyBad
public void testGetPropertyAsShortWithDefaultPropertyBad()(Code)
Test getPropertyAsShort(String, short) - default specified, property bad.



testGetPropertyAsShortWithDefaultPropertyMissing
public void testGetPropertyAsShortWithDefaultPropertyMissing()(Code)
Test getPropertyAsShort(String, short) - default specified, property absent.



testGetPropertyString
public void testGetPropertyString()(Code)
Test the getProperty method. Tests ability to retrieve a property from sample properties file. Tests for proper exception throw when property not found.



testGetPropertyUntrimmedLeadingWhitespace
public void testGetPropertyUntrimmedLeadingWhitespace()(Code)
This test demonstrates that getPropertyUntrimmed does *not* retain leading whitespace on property values.



testGetPropertyUntrimmedMissingProperty
public void testGetPropertyUntrimmedMissingProperty()(Code)
Test exception throw when property missing.



testGetPropertyUntrimmedTrailingWhitespace
public void testGetPropertyUntrimmedTrailingWhitespace()(Code)
Test proper retention of trailing whitespace.



testGetPropertyUntrimmedWithDefault
public void testGetPropertyUntrimmedWithDefault()(Code)
Test getPropertyUntrimmed() with default value where property is present.



testGetPropertyUntrimmedWithDefaultPropertyMissing
public void testGetPropertyUntrimmedWithDefaultPropertyMissing()(Code)
Test getPropertyUntrimmed() with default value where property is missing.



testGetPropertyWithDefault
public void testGetPropertyWithDefault()(Code)
Test getPropertyAsString with default value where property is present.



testGetPropertyWithDefaultPropertyMissing
public void testGetPropertyWithDefaultPropertyMissing()(Code)
Test getPropertyAsString with default value where property is missing.



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