| |
|
| com.jgoodies.binding.tests.PreferencesAdapterTest
PreferencesAdapterTest | final public class PreferencesAdapterTest extends TestCase (Code) | | A test case for class
PreferencesAdapter .
author: Karsten Lentzsch version: $Revision: 1.8 $ |
setUp | protected void setUp()(Code) | | |
tearDown | protected void tearDown()(Code) | | |
testConstructorAcceptsKnownDefaultValueTypes | public void testConstructorAcceptsKnownDefaultValueTypes()(Code) | | |
testConstructorRejectsIllegalDefaultValueTypes | public void testConstructorRejectsIllegalDefaultValueTypes()(Code) | | |
testConstructorRejectsNullValues | public void testConstructorRejectsNullValues()(Code) | | |
testReadDefaultValue | public void testReadDefaultValue()(Code) | | Checks that the PreferencesAdapter returns the default value
if no value has been stored in the preferences under the given key.
This test first removes the value for the given key - if any.
|
testReadWrittenValue | public void testReadWrittenValue()(Code) | | |
testRejectsReadingInconsistentType | public void testRejectsReadingInconsistentType()(Code) | | |
testRejectsWritingInconsistentType | public void testRejectsWritingInconsistentType()(Code) | | |
testRejectsWritingNull | public void testRejectsWritingNull()(Code) | | |
testSettingDefaultValueWrites | public void testSettingDefaultValueWrites()(Code) | | Checks that writing the default value actually writes a value.
Just checks a String-typed value, because the mechanism is all
the same for the different types.
|
|
|
|