Throw UnsupportedOpException on watch in tx in Lettuce

DATAREDIS-225
This commit is contained in:
Jennifer Hickey
2013-07-22 12:32:37 -07:00
parent 5ab5ee031e
commit 86173faa81
2 changed files with 9 additions and 2 deletions

View File

@@ -109,6 +109,11 @@ abstract public class AbstractConnectionTransactionIntegrationTests extends
public void testHashNullValue() throws Exception {
}
@Test(expected=UnsupportedOperationException.class)
public void testWatchWhileInTx() {
connection.watch("foo".getBytes());
}
// Type conversion overrides
@Test