We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 229038b commit d0164fbCopy full SHA for d0164fb
src/test/java/net/spy/memcached/MemcachedConnectionTest.java
@@ -73,4 +73,10 @@ public void testBelongsToCluster() throws Exception {
73
assertTrue(conn.belongsToCluster(node));
74
assertFalse(conn.belongsToCluster(node2));
75
}
76
+ public void testDefaultClientMode() throws Exception {
77
+ ConnectionFactory factory = new DefaultConnectionFactory();
78
+ assert factory.getClientMode() == ClientMode.Unset;
79
+ MemcachedClient client = new MemcachedClient(factory, AddrUtil.getAddresses(UnitTestConfig.IPV4_ADDR + ":11211"));
80
+ assert client.clientMode == ClientMode.Static;
81
+ }
82
0 commit comments