2 * License : The MIT License
\r
3 * Copyright(c) 2009 olyutorskii
\r
6 package jp.sourceforge.jindolf.corelib;
\r
8 import org.junit.After;
\r
9 import org.junit.AfterClass;
\r
10 import org.junit.Before;
\r
11 import org.junit.BeforeClass;
\r
12 import org.junit.Test;
\r
13 import static org.junit.Assert.*;
\r
17 public class SysEventTypeTest {
\r
19 public SysEventTypeTest() {
\r
23 public static void setUpClass() throws Exception{
\r
27 public static void tearDownClass() throws Exception{
\r
31 public void setUp() {
\r
35 public void tearDown() {
\r
39 * Test of values method, of class SysEventType.
\r
42 public void testValues(){
\r
43 System.out.println("values");
\r
44 SysEventType[] values = SysEventType.values();
\r
45 assertEquals(28, values.length);
\r
50 * Test of valueOf method, of class SysEventType.
\r
53 public void testValueOf(){
\r
59 * Test of getEventFamily method, of class SysEventType.
\r
62 public void testGetEventFamily(){
\r
63 System.out.println("getEventFamily");
\r
65 SysEventType[] values = SysEventType.values();
\r
67 for(SysEventType type : values){
\r
87 assertEquals(EventFamily.ANNOUNCE, type.getEventFamily());
\r
94 assertEquals(EventFamily.ORDER, type.getEventFamily());
\r
99 assertEquals(EventFamily.EXTRA, type.getEventFamily());
\r
103 assertNull(type.getEventFamily());
\r