diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/utils/AbstractLRUTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/utils/AbstractLRUTest.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java b/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java new file mode 100644 index 0000000..83a796b --- /dev/null +++ b/tests/src/cgeo/geocaching/utils/AbstractLRUTest.java @@ -0,0 +1,20 @@ +package cgeo.geocaching.utils; + +import org.apache.commons.lang3.StringUtils; + +import android.test.AndroidTestCase; + +import java.util.ArrayList; +import java.util.Collection; + +public abstract class AbstractLRUTest extends AndroidTestCase { + + protected static String colToStr(Collection<?> col) { + final ArrayList<String> list = new ArrayList<String>(col.size()); + for (Object o : col) { + list.add(o.toString()); + } + return StringUtils.join(list, ", "); + } + +}
\ No newline at end of file |
