Permalink
Browse files

Correct test for StringUtils.join().

Change-Id: I9c320db96a1a1587d39696195f44a1d775cdd0a8
Reviewed-on: http://review.couchbase.org/18682
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Michael Nitschinger <michael@nitschinger.at>
Tested-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent 7cb614f commit b9cf1f4fcf8a7c067b0fdcd1b6b9d5c8d3112b12 @ingenthr ingenthr committed Jul 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/net/spy/memcached/util/UtilTest.java
@@ -20,8 +20,8 @@ public void teardown() {
public void testJoin() {
Collection<String> keys = new LinkedList<String>();
keys.add("key1");
- keys.add("key1");
- keys.add("key1");
- assert StringUtils.join(keys, ",").compareTo("key1,key2,key3") == 0;
+ keys.add("key2");
+ keys.add("key3");
+ assertEquals("key1,key2,key3", StringUtils.join(keys, ","));
}
}

0 comments on commit b9cf1f4

Please sign in to comment.