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.objectserver.uuid;
05:
06: import com.tc.test.TCTestCase;
07: import com.tc.util.UUID;
08:
09: 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 s = UUID.getUUID().toString();
17: assertEquals(32, s.length());
18: System.out.println(s);
19: }
20:
21: }
|