Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b9cf1f4fcf8a7c067b0fdcd1b6b9d5c8d3112b12 1 parent 7cb614f
@ingenthr ingenthr authored ingenthr committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/net/spy/memcached/util/UtilTest.java
View
6 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, ","));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.