added extra default arguments - shame we can't reuse default argument methods from java code

This commit is contained in:
James Strachan
2012-04-03 19:14:00 +01:00
parent 534da34d36
commit 5ffbc87b3f
@@ -17,7 +17,7 @@ public class CollectionTest extends TestCase {
public void testCollections() throws Exception { public void testCollections() throws Exception {
List<String> list = arrayList("foo", "bar"); List<String> list = arrayList("foo", "bar");
String text = makeString(list, ",", "(", ")", -1); String text = makeString(list, ",", "(", ")", -1, "...");
System.out.println("Have text: " + text); System.out.println("Have text: " + text);
assertEquals("(foo,bar)", text); assertEquals("(foo,bar)", text);
@@ -29,6 +29,6 @@ public class CollectionTest extends TestCase {
}); });
System.out.println("Filtered list is " + actual); System.out.println("Filtered list is " + actual);
assertEquals("(bar)", makeString(actual, ",", "(", ")", -1)); assertEquals("(bar)", makeString(actual, ",", "(", ")", -1, "..."));
} }
} }