Skip to content

Commit 31be56e

Browse files
committed
Merge pull request #66 from viv/master
Explicitly load the test configuration.properties when testing Configuration
2 parents 9d6213a + e165164 commit 31be56e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/test/java/org/buddycloud/channelserver/ConfigurationTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.Assert.*;
44

5+
import java.io.FileInputStream;
56
import java.util.Collection;
67

78
import org.junit.After;
@@ -11,11 +12,14 @@
1112

1213
public class ConfigurationTest {
1314

15+
private static final String CONFIGURATION_PROPERTIES = "src/test/resources/configuration.properties";
16+
1417
Configuration configuration;
15-
18+
1619
@Before
1720
public void setUp() throws Exception {
1821
configuration = Configuration.getInstance();
22+
configuration.load(new FileInputStream(CONFIGURATION_PROPERTIES));
1923
}
2024

2125
@After

0 commit comments

Comments
 (0)