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.net.protocol.tcm;
05:
06: import java.util.Arrays;
07:
08: import junit.framework.TestCase;
09:
10: /**
11: * @author orion
12: */
13: public class TCMessageTypeTest extends TestCase {
14: public void testInitialization() {
15: TCMessageType type = TCMessageType
16: .getInstance(TCMessageType.TYPE_BROADCAST_TRANSACTION_MESSAGE);
17: assertEquals(type.getType(),
18: TCMessageType.TYPE_BROADCAST_TRANSACTION_MESSAGE);
19: assertTrue(type.getTypeName() != null);
20:
21: System.out.println(Arrays.asList(TCMessageType
22: .getAllMessageTypes()));
23: }
24: }
|