252814b564fc6af708e8fcc5dc21916ead8ad1cc
[packetcable.git] / packetcable-driver / src / test / java / org / umu / cops / stack / COPSDataFirstConstructorTest.java
1 package org.umu.cops.stack;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5
6 /**
7  * Tests for the first (default) constructor of the COPSData class.
8  * Should any of these tests be inaccurate it is due to the fact that they have been written after COPSHandle had been
9  * released and my assumptions may be incorrect.
10  */
11 public class COPSDataFirstConstructorTest {
12
13     @Test
14     public void defaultConstructor() {
15         final COPSData data = new COPSData();
16         Assert.assertEquals(null, data.getData());
17         Assert.assertEquals(0, data.length());
18         Assert.assertEquals("", data.str());
19         Assert.assertTrue(data.equals(new COPSData()));
20     }
21 }