Basic fixes to make build work :)
[packetcable.git] / src / test / java / org / pcmm / test / PCErrorTest.java
1 package org.pcmm.test;
2
3 import org.junit.Assert;
4 import org.junit.Before;
5 import org.junit.Test;
6 import org.pcmm.gates.IPCMMError;
7 import org.pcmm.gates.impl.PCMMError;
8
9 public class PCErrorTest {
10
11         IPCMMError error;
12
13         @Before
14         public void init() {
15                 error = new PCMMError();
16                 error.setErrorCode((short) 1);
17         }
18
19         @Test
20         public void testGetDescription() {
21                 for (IPCMMError.Description d : IPCMMError.Description.values()) {
22                         error.setErrorCode(d.getCode());
23                         Assert.assertNotNull(error.getDescription());
24                         System.out.println(error.getDescription());
25                 }
26
27         }
28
29 }