@Test public void testCreate_5args() { System.out.println("create"); ConnectionFactoryBuilder.Protocol protocol = ConnectionFactoryBuilder.Protocol.BINARY; String user = ""; String pass = ""; String[] authMechanisms = new String[]{"PLAIN"}; MemcachedClient result = SpymemcachedFactory.create(HOST, protocol, user, pass, authMechanisms); assertNotNull(result); result.shutdown(); }
public static final MemcachedClient create(final PippoSettings settings) { String host = settings.getString(HOST, "localhost:11211"); String prot = settings.getString(PROT, "BINARY"); Protocol protocol = Protocol.valueOf(prot); String user = settings.getString(USER, ""); String pass = settings.getString(PASS, ""); List<String> autM = settings.getStrings(AUTM); String[] mechanisms = autM.toArray(new String[autM.size()]); return create(host, protocol, user, pass, mechanisms); }
SpymemcachedFactory { public static final MemcachedClient create(final PippoSettings settings) { String host = settings.getString(HOST, "localhost:11211"); String prot = settings.getString(PROT, "BINARY"); Protocol protocol = Protocol.valueOf(prot); String user = settings.getString(USER, ""); String pass = settings.getString(PASS, ""); List<String> autM = settings.getStrings(AUTM); String[] mechanisms = autM.toArray(new String[autM.size()]); return create(host, protocol, user, pass, mechanisms); } }
SpymemcachedFactory { public static final MemcachedClient create(final PippoSettings settings) { String host = settings.getString(HOST, "localhost:11211"); String prot = settings.getString(PROT, "BINARY"); Protocol protocol = Protocol.valueOf(prot); String user = settings.getString(USER, ""); String pass = settings.getString(PASS, ""); List<String> autM = settings.getStrings(AUTM); String[] mechanisms = autM.toArray(new String[autM.size()]); return create(host, protocol, user, pass, mechanisms); } private  SpymemcachedFactory(); }
SpymemcachedFactory { public static final MemcachedClient create(final PippoSettings settings) { String host = settings.getString(HOST, "localhost:11211"); String prot = settings.getString(PROT, "BINARY"); Protocol protocol = Protocol.valueOf(prot); String user = settings.getString(USER, ""); String pass = settings.getString(PASS, ""); List<String> autM = settings.getStrings(AUTM); String[] mechanisms = autM.toArray(new String[autM.size()]); return create(host, protocol, user, pass, mechanisms); } private  SpymemcachedFactory(); static final MemcachedClient create(final PippoSettings settings); static final MemcachedClient create(
            String hosts,
            Protocol protocol,
            String user,
            String pass,
            String[] authMechanisms); }
SpymemcachedFactory { public static final MemcachedClient create(final PippoSettings settings) { String host = settings.getString(HOST, "localhost:11211"); String prot = settings.getString(PROT, "BINARY"); Protocol protocol = Protocol.valueOf(prot); String user = settings.getString(USER, ""); String pass = settings.getString(PASS, ""); List<String> autM = settings.getStrings(AUTM); String[] mechanisms = autM.toArray(new String[autM.size()]); return create(host, protocol, user, pass, mechanisms); } private  SpymemcachedFactory(); static final MemcachedClient create(final PippoSettings settings); static final MemcachedClient create(
            String hosts,
            Protocol protocol,
            String user,
            String pass,
            String[] authMechanisms);  }