summaryrefslogtreecommitdiff
path: root/same/src/test/java/com/orbekk
diff options
context:
space:
mode:
Diffstat (limited to 'same/src/test/java/com/orbekk')
-rw-r--r--same/src/test/java/com/orbekk/same/config/ConfigurationTest.java17
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"));
+
+ }
+}