+ assertEquals(fixture.getTimestampEnd(), 1L);
+ }
+
+ StreamInput s1;
+ StreamInput s2;
+
+
+ @Test
+ public void testEquals1() throws CTFReaderException{
+ s1 = new StreamInput(new Stream(TestParams.createTrace()),
+ (FileChannel) null, createFile());
+ assertFalse(s1.equals(null));
+ }
+
+ @Test
+ public void testEquals2() throws CTFReaderException{
+ s1 = new StreamInput(new Stream(TestParams.createTrace()),
+ (FileChannel) null, createFile());
+ assertFalse(s1.equals(new Long(23L)));
+
+ }
+ @Test
+ public void testEquals3() throws CTFReaderException{
+ s1 = new StreamInput(new Stream(TestParams.createTrace()),
+ (FileChannel) null, createFile());
+ assertEquals(s1,s1);
+
+ }
+ @Test
+ public void testEquals4() throws CTFReaderException{
+ s1 = new StreamInput(new Stream(TestParams.createTrace()),
+ (FileChannel) null, createFile());
+ s2 = new StreamInput(new Stream(TestParams.createTrace()),
+ (FileChannel) null, createFile());
+ assertEquals(s1,s2);