KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > tcm > TCMessageTypeTest


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.net.protocol.tcm;
5
6 import java.util.Arrays JavaDoc;
7
8 import junit.framework.TestCase;
9
10 /**
11  * @author orion
12  */

13 public class TCMessageTypeTest extends TestCase {
14   public void testInitialization() {
15     TCMessageType type = TCMessageType.getInstance(TCMessageType.TYPE_BROADCAST_TRANSACTION_MESSAGE);
16     assertEquals(type.getType(), TCMessageType.TYPE_BROADCAST_TRANSACTION_MESSAGE);
17     assertTrue(type.getTypeName() != null);
18
19     System.out.println(Arrays.asList(TCMessageType.getAllMessageTypes()));
20   }
21 }
Popular Tags