01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.util;
05:
06: import junit.framework.TestCase;
07:
08: public class UtilTest extends TestCase {
09:
10: public void test() {
11: System.out.println(Util.enumerateArray(null));
12: System.out.println(Util.enumerateArray(this )); // not an array
13: System.out.println(Util.enumerateArray(new Object[] {}));
14: System.out.println(Util.enumerateArray(new Object[] { null,
15: "timmy" }));
16: System.out.println(Util.enumerateArray(new char[] {}));
17: System.out.println(Util.enumerateArray(new long[] { 42L }));
18: }
19:
20: }
|