Add unit tests to Closeable

This commit is contained in:
Jonathan Leibiusky
2014-02-11 12:31:32 -05:00
parent 79f1dcb92b
commit fcef705a6c
2 changed files with 16 additions and 0 deletions

View File

@@ -41,4 +41,11 @@ public class ConnectionTest extends Assert {
client.setTimeoutInfinite();
}
@Test
public void checkCloseable() {
client.setHost("localhost");
client.setPort(6379);
client.connect();
client.close();
}
}