diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2013-11-18 22:28:10 -0800 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2013-11-18 22:28:10 -0800 | 
| commit | 330f60ef82abf2b6d4920ac26ed5944c33d87696 (patch) | |
| tree | 96ba447c82c0558e7139b04400632abc7089fbb9 /tst/com/p4square/grow/config | |
| parent | 41a861fc3fa755887cda26ea52cf174911549caf (diff) | |
Making strict viewing order configurable.
Diffstat (limited to 'tst/com/p4square/grow/config')
| -rw-r--r-- | tst/com/p4square/grow/config/ConfigTest.java | 7 | ||||
| -rw-r--r-- | tst/com/p4square/grow/config/ConfigTest.properties | 4 | 
2 files changed, 11 insertions, 0 deletions
diff --git a/tst/com/p4square/grow/config/ConfigTest.java b/tst/com/p4square/grow/config/ConfigTest.java index 17185de..ccb39da 100644 --- a/tst/com/p4square/grow/config/ConfigTest.java +++ b/tst/com/p4square/grow/config/ConfigTest.java @@ -51,5 +51,12 @@ public class ConfigTest {          // Non number test          assertEquals(Integer.MIN_VALUE, domain1.getInt("notANumber")); + +        // Test Boolean values +        assertTrue(domain1.getBoolean("boolean1")); +        assertTrue(domain1.getBoolean("boolean2")); +        assertFalse(domain1.getBoolean("boolean3")); +        assertFalse(domain1.getBoolean("notABool")); +        assertTrue(domain1.getBoolean("notABool", true));      }  } diff --git a/tst/com/p4square/grow/config/ConfigTest.properties b/tst/com/p4square/grow/config/ConfigTest.properties index 8a8328d..e5b4032 100644 --- a/tst/com/p4square/grow/config/ConfigTest.properties +++ b/tst/com/p4square/grow/config/ConfigTest.properties @@ -10,3 +10,7 @@ domain1.onlyInDomain1 = domain1Value  *.number = 5  *.notANumber = Hello + +*.boolean1 = True +*.boolean2 = true +*.boolean3 = false  | 
