DefaultPortalMetaServerProvider implements PortalMetaServerProvider { @Override public String getMetaServerAddress(Env targetEnv) { String metaServerAddress = domains.get(targetEnv); return metaServerAddress == null ? null : metaServerAddress.trim(); } DefaultPortalMetaServerProvider(); @Override String getMetaServerAddress(Env targetEnv); @Override boolean exists(Env targetEnv); @Override void reload();  }
@Test public void testFromPropertyFile() { assertEquals("http: assertEquals("${dev_meta}", defaultPortalMetaServerProvider.getMetaServerAddress(Env.DEV)); assertEquals("${pro_meta}", defaultPortalMetaServerProvider.getMetaServerAddress(Env.PRO)); }