@@ -178,7 +178,7 @@ public void testExtendedUTF8Key() throws Exception {
178178    assertEquals ("test1value" , client .get (key ));
179179  }
180180
181-   public  void  testInvalidKey1 () throws  Exception  {
181+   public  void  testKeyWithSpaces () throws  Exception  {
182182    try  {
183183      client .get ("key with spaces" );
184184      fail ("Expected IllegalArgumentException getting key with spaces" );
@@ -187,7 +187,7 @@ public void testInvalidKey1() throws Exception {
187187    }
188188  }
189189
190-   public  void  testInvalidKey2 () throws  Exception  {
190+   public  void  testKeyLongerThan250 () throws  Exception  {
191191    try  {
192192      StringBuilder  longKey  = new  StringBuilder ();
193193      for  (int  i  = 0 ; i  < 251 ; i ++) {
@@ -200,7 +200,7 @@ public void testInvalidKey2() throws Exception {
200200    }
201201  }
202202
203-   public  void  testInvalidKey3 () throws  Exception  {
203+   public  void  testKeyWithNewline () throws  Exception  {
204204    try  {
205205      Object  val  = client .get ("Key\n " );
206206      fail ("Expected IllegalArgumentException, got "  + val );
@@ -209,7 +209,7 @@ public void testInvalidKey3() throws Exception {
209209    }
210210  }
211211
212-   public  void  testInvalidKey4 () throws  Exception  {
212+   public  void  testKeyWithReturn () throws  Exception  {
213213    try  {
214214      Object  val  = client .get ("Key\r " );
215215      fail ("Expected IllegalArgumentException, got "  + val );
@@ -218,7 +218,7 @@ public void testInvalidKey4() throws Exception {
218218    }
219219  }
220220
221-   public  void  testInvalidKey5 () throws  Exception  {
221+   public  void  testKeyWithASCIINull () throws  Exception  {
222222    try  {
223223      Object  val  = client .get ("Key\0 " );
224224      fail ("Expected IllegalArgumentException, got "  + val );
@@ -236,7 +236,7 @@ public void testInvalidKeyBlank() throws Exception {
236236    }
237237  }
238238
239-   public  void  testInvalidKeyBulk () throws  Exception  {
239+   public  void  testGetBulkKeyWSpaces () throws  Exception  {
240240    try  {
241241      Object  val  = client .getBulk ("Key key2" );
242242      fail ("Expected IllegalArgumentException, got "  + val );
0 commit comments