| 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 void | setUp() | protected void | tearDown() | public void | testGetMissingProperties() Test that the getMissingProperties() method reports missing properties. | public void | testGetPropertyAsBoolean() Test getPropertyAsBoolean(). | public void | testGetPropertyAsBooleanMissingProperty() Test getting a missing property as a boolean: throws proper exception. | public void | testGetPropertyAsBooleanWithDefault() Test getPropertyAsBoolean with default value where property is present. | public void | testGetPropertyAsBooleanWithDefaultPropertyMissing() Test getPropertyAsBoolean with default value where property is absent. | public void | testGetPropertyAsByte() Test getPropertyAsByte(). | public void | testGetPropertyAsByteBadValue() Test that getPropertyAsByte() throws proper runtime exception when the property
value cannot be parsed as a byte. | public void | testGetPropertyAsByteMissingProperty() Test that getPropertyAsByte() throws proper runtime exception when property is missing. | public void | testGetPropertyAsByteWithDefault() Test getPropertyAsByte(String, byte) - default specified, property is present. | public void | testGetPropertyAsByteWithDefaultPropertyBad() Test getPropertyAsByte() with default value where property cannot be
parsed as a byte. | public void | testGetPropertyAsByteWithDefaultPropertyMissing() Test getPropertyAsByte with default value where property is missing. | public void | testGetPropertyAsDouble() | public void | testGetPropertyAsDoubleBadValue() Test that getPropertyAsDouble() throws proper runtime exception when the property
value cannot be parsed as a byte. | public void | testGetPropertyAsDoubleMissingProperty() Test getPropertyAsDouble() for proper handling of missing property. | public void | testGetPropertyAsDoubleWithDefault() Test getPropertyAsDouble(String, double) - default specified, property present. | public void | testGetPropertyAsDoubleWithDefaultPropertyBad() Test getPropertyAsDouble(String, double) - default specified, property bad. | public void | testGetPropertyAsDoubleWithDefaultPropertyMissing() Test getPropertyAsDouble(String, double) - default specified, property absent. | public void | testGetPropertyAsFloat() | public void | testGetPropertyAsFloatBadValue() Test that getPropertyAsFloat() throws proper runtime exception when the property
value cannot be parsed as a float. | public void | testGetPropertyAsFloatMissingProperty() Test getPropertyAsFloat() for proper handling of missing property. | public void | testGetPropertyAsFloatWithDefault() Test getPropertyAsFloat(String, float) - default specified, property present. | public void | testGetPropertyAsFloatWithDefaultPropertyBad() Test getPropertyAsFloat(String, float) - default specified, property absent. | public void | testGetPropertyAsFloatWithDefaultPropertyMissing() Test getPropertyAsFloat(String, float) - default specified, property absent. | public void | testGetPropertyAsInt() | public void | testGetPropertyAsIntBadValue() Test that getPropertyAsInt() throws proper runtime exception when the property
value cannot be parsed as an int. | public void | testGetPropertyAsIntMissingProperty() Test getPropertyAsInt() handling of missing property. | public void | testGetPropertyAsIntWithDefault() Test getPropertyAsInt(String, int) - default specified, property present. | public void | testGetPropertyAsIntWithDefaultPropertyBad() Test getPropertyAsInt(String, int) - default specified, property bad. | public void | testGetPropertyAsIntWithDefaultPropertyMissing() Test getPropertyAsInt(String, int) - default specified, property absent. | public void | testGetPropertyAsLong() | public void | testGetPropertyAsLongBadValue() Test that getPropertyAsLong() throws proper runtime exception when the property
value cannot be parsed as a byte. | public void | testGetPropertyAsLongMissingProperty() Test proper error handing for getPropertyAsLong() for missing property. | public void | testGetPropertyAsLongWithDefault() Test getPropertyAsLong(String, long) - default specified, property present. | public void | testGetPropertyAsLongWithDefaultPropertyBad() Test getPropertyAsLong(String, long) - default specified, property bad. | public void | testGetPropertyAsLongWithDefaultPropertyMissing() Test getPropertyAsLong(String, long) - default specified, property absent. | public void | testGetPropertyAsShort() | public void | testGetPropertyAsShortBadValue() Test that getPropertyAsShort() throws proper runtime exception when the property
value cannot be parsed as a short. | public void | testGetPropertyAsShortMissingProperty() Test proper exception throw from getPropertyAsShort() when property is missing. | public void | testGetPropertyAsShortWithDefault() Test getPropertyAsShort(String, short) - default specified, property present. | public void | testGetPropertyAsShortWithDefaultPropertyBad() Test getPropertyAsShort(String, short) - default specified, property bad. | public void | testGetPropertyAsShortWithDefaultPropertyMissing() Test getPropertyAsShort(String, short) - default specified, property absent. | public void | testGetPropertyString() Test the getProperty method. | public void | testGetPropertyUntrimmedLeadingWhitespace() This test demonstrates that getPropertyUntrimmed does *not* retain leading whitespace
on property values. | public void | testGetPropertyUntrimmedMissingProperty() Test exception throw when property missing. | public void | testGetPropertyUntrimmedTrailingWhitespace() Test proper retention of trailing whitespace. | public void | testGetPropertyUntrimmedWithDefault() Test getPropertyUntrimmed() with default value where property is present. | public void | testGetPropertyUntrimmedWithDefaultPropertyMissing() Test getPropertyUntrimmed() with default value where property is missing. | public void | testGetPropertyWithDefault() Test getPropertyAsString with default value where property is present. | public void | testGetPropertyWithDefaultPropertyMissing() Test getPropertyAsString with default value where property is missing. |
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.
|
|
|