Skip to content

Commit

Permalink
Run the client tests against ipv6 as well as ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Feb 26, 2008
1 parent 98c0e69 commit faf8dd4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/java/net/spy/memcached/AsciiIPV6ClientTest.java
@@ -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";
}

}
19 changes: 19 additions & 0 deletions src/test/java/net/spy/memcached/BinaryIPV6ClientTest.java
@@ -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";
}

}

0 comments on commit faf8dd4

Please sign in to comment.