1 package org.umu.cops.stack;
3 import org.junit.Assert;
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.
11 public class COPSDataFirstConstructorTest {
14 public void defaultConstructor() {
15 final COPSData data = new COPSData();
16 Assert.assertArrayEquals(new byte[0], data.getData());
17 Assert.assertEquals(0, data.length());
18 Assert.assertEquals("", data.str());
19 Assert.assertTrue(data.equals(new COPSData()));