title: Junit difference between assertEquals(Double, Double) and assertEquals(double, double, delta)
body: <p>I had a junit test asserting two Double objects with the following:</p>
  
  <pre><code>Assert.assertEquals(Double expected, Double result);
  </code></pre>
  
  <p>This was was fine then I decided to change it to use the primitive double instead which turned out to be deprecated unless you also provide a delta.</p>
  
  <p>so what I am wondering is what is the difference between using the Double object or the primitive type in this assertEquals? Why is using the objects without a delta ok but then using the primitives without a delta is deprecated? Is Java doing something in the background which already has a default delta value taken into account?</p>
  
  <p>Thanks.</p>