Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run the client tests against ipv6 as well as ipv4
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.spy.memcached; | ||
|
||
/** | ||
* Test the test protocol over IPv6. | ||
*/ | ||
public class AsciiIPV6ClientTest extends AsciiClientTest { | ||
|
||
@Override | ||
protected void initClient(ConnectionFactory cf) throws Exception { | ||
client=new MemcachedClient(cf, | ||
AddrUtil.getAddresses("::1:11211")); | ||
} | ||
|
||
@Override | ||
protected String getExpectedVersionSource() { | ||
return "/0:0:0:0:0:0:0:1:11211"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.spy.memcached; | ||
|
||
/** | ||
* Binary IPv6 client test. | ||
*/ | ||
public class BinaryIPV6ClientTest extends BinaryClientTest { | ||
|
||
@Override | ||
protected void initClient(ConnectionFactory cf) throws Exception { | ||
client=new MemcachedClient(cf, | ||
AddrUtil.getAddresses("::1:11212")); | ||
} | ||
|
||
@Override | ||
protected String getExpectedVersionSource() { | ||
return "/0:0:0:0:0:0:0:1:11212"; | ||
} | ||
|
||
} |