diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-03 16:52:07 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-03 16:52:07 +0100 |
commit | 1be8d7ee97a96f79e75f43710f8322611c5a1e24 (patch) | |
tree | dce84f10c9db94bad9530bc71a0d638f5f5409cd /same/src/test/java | |
parent | 1c7bbed107d0767536c93a092dbf192a6a45a620 (diff) |
Add Configuration system.
Diffstat (limited to 'same/src/test/java')
-rw-r--r-- | same/src/test/java/com/orbekk/same/config/ConfigurationTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/same/src/test/java/com/orbekk/same/config/ConfigurationTest.java b/same/src/test/java/com/orbekk/same/config/ConfigurationTest.java new file mode 100644 index 0000000..e5b42aa --- /dev/null +++ b/same/src/test/java/com/orbekk/same/config/ConfigurationTest.java @@ -0,0 +1,17 @@ +package com.orbekk.same.config; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class ConfigurationTest { + @Test public void testLoadConfiguration() { + String resources = "src/test/resources/"; + System.setProperty(Configuration.configurationProperty, + resources + "com/orbekk/same/config/test.properties"); + Configuration configuration = Configuration.load(); + assertEquals("Test Value", + configuration.getProperty("testProperty")); + + } +} |