@Test public void register_containsValue() { SimpleAliasRegistry registry = new SimpleAliasRegistry(); registry.register(ALIAS, ADDRESS); checkMethods(registry); }
public void register(String alias, String address) { this.aliasMap.put(alias, address); }
SimpleAliasRegistry implements AliasRegistry { public void register(String alias, String address) { this.aliasMap.put(alias, address); } }
SimpleAliasRegistry implements AliasRegistry { public void register(String alias, String address) { this.aliasMap.put(alias, address); } SimpleAliasRegistry();  SimpleAliasRegistry(Map<String, String> aliasMap); }
SimpleAliasRegistry implements AliasRegistry { public void register(String alias, String address) { this.aliasMap.put(alias, address); } SimpleAliasRegistry();  SimpleAliasRegistry(Map<String, String> aliasMap); void register(String alias, String address); @Override boolean canResolve(String connection, String alias); @Override String resolve(String connection, String alias); @Override boolean canResolve(String alias); @Override String resolve(String alias); }
SimpleAliasRegistry implements AliasRegistry { public void register(String alias, String address) { this.aliasMap.put(alias, address); } SimpleAliasRegistry();  SimpleAliasRegistry(Map<String, String> aliasMap); void register(String alias, String address); @Override boolean canResolve(String connection, String alias); @Override String resolve(String connection, String alias); @Override boolean canResolve(String alias); @Override String resolve(String alias);  }