KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > uuid > UUIDTest


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.objectserver.uuid;
5
6 import com.tc.test.TCTestCase;
7 import com.tc.util.UUID;
8
9 public class UUIDTest extends TCTestCase {
10
11   public void testUUID() {
12     // This test is located in one of the JDK1.5 specific source trees on purpose. If it is moved someplace where a 1.4
13
// runtime will execute it, it will fail.
14

15     assertTrue(UUID.usesJDKImpl());
16     String JavaDoc s = UUID.getUUID().toString();
17     assertEquals(32, s.length());
18     System.out.println(s);
19   }
20
21 }
22
Popular Tags