KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > util > UtilTest


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.util;
5
6 import junit.framework.TestCase;
7
8 public class UtilTest extends TestCase {
9
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 JavaDoc[] {}));
14     System.out.println(Util.enumerateArray(new Object JavaDoc[] { null, "timmy" }));
15     System.out.println(Util.enumerateArray(new char[] {}));
16     System.out.println(Util.enumerateArray(new long[] { 42L }));
17   }
18
19 }
20
Popular Tags