1 15 package hivemind.test.config.impl; 16 17 import java.io.InputStream ; 18 import java.util.Properties ; 19 20 import org.apache.hivemind.SymbolSource; 21 22 public class MockSymbolSource implements SymbolSource 23 { 24 private Properties _properties; 25 26 public MockSymbolSource() throws Exception  27 { 28 _properties = new Properties (); 29 30 InputStream in = getClass().getResourceAsStream("test.properties"); 31 32 _properties.load(in); 33 34 in.close(); 35 } 36 37 public String valueForSymbol(String name) 38 { 39 return _properties.getProperty(name); 40 } 41 42 } 43 | Popular Tags |