Rename xxx.lttng to xxx.lttng.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / src / org / eclipse / linuxtools / tmf / tests / event / TmfEventTypeTest.java
index b11460eb172efc6a0b9f71b7cab9f57c42c069cf..355e1ca764b4135a91ea6d70cd123b551c3b1cff 100644 (file)
@@ -22,6 +22,7 @@ import org.eclipse.linuxtools.tmf.event.TmfNoSuchFieldException;
  * <p>
  * JUnit test suite for the TmfEventType class.
  */
+@SuppressWarnings("nls")
 public class TmfEventTypeTest extends TestCase {
 
     // ------------------------------------------------------------------------
@@ -172,19 +173,20 @@ public class TmfEventTypeTest extends TestCase {
                assertTrue("equals", fType0.equals(fType2));
        }
        
-       public void testEqualsConsistency() throws Exception {
-               assertTrue("equals", fType0.equals(fType0));
-               assertTrue("equals", fType0.equals(fType0));
-
-               assertTrue("equals", fType3.equals(fType3));
-               assertTrue("equals", fType3.equals(fType3));
-       }
-       
        public void testEqualsNull() throws Exception {
                assertTrue("equals", !fType0.equals(null));
                assertTrue("equals", !fType3.equals(null));
        }
        
+       // ------------------------------------------------------------------------
+       // hashCode
+       // ------------------------------------------------------------------------
+
+       public void testHashCode() throws Exception {
+               assertTrue("hashCode", fType0.hashCode() == fType1.hashCode());
+               assertTrue("hashCode", fType0.hashCode() != fType3.hashCode());
+       }
+       
        // ------------------------------------------------------------------------
        // toString
        // ------------------------------------------------------------------------
This page took 0.024084 seconds and 5 git commands to generate.