* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
+* Modifications Copyright 2018 IBM.
+*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
import static org.junit.Assert.*;
+import java.util.Date;
+
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public void testToString_ContainsString() {
assertTrue(commonHeader.toString().contains("CommonHeader{flags"));
}
+
+ @Test
+ public void testTimeStamp() {
+ Date date=new Date();
+ commonHeader.setTimestamp(date);
+ assertEquals(date, commonHeader.getTimeStamp());
+ }
}