title: What is the actual difference between assertEquals() vs assertTrue() in TestNG?
body: <p>I'm confusing about both these methods, because both can do the same thing, like below snippet of my code.</p>
  
  <p>Using <strong>assertEquals()</strong></p>
  
  <pre><code>String a = "Hello";
  String b = "Hello";
  
  assertEquals(a, b);
  </code></pre>
  
  <p>Using <strong>assertTrue()</strong></p>
  
  <pre><code>assertTrue(a.equals(b));
  </code></pre>
  
  <p>Can anyone tell me the actual difference between both these two methods?</p>