title: AssertionFailedError: null on boolean method
body: <p>I am testing a method that takes two objects as parameters and returns a <code>boolean</code>. When I use and <code>assertTrue</code> or <code>assertFalse</code> on the method in question I get the following test failure: <code>junit.framework.AssertionFailedError: null</code>.</p>
  
  <p>I know that I am passing invalid parameters and will likely be causing a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html" rel="noreferrer">NPE</a> within the method but that is not what is happening, instead the test is failing.</p>
  
  <p>Note: I am using <code>boolean</code> and not <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html" rel="noreferrer">Boolean</a>.</p>
  
  <p>Sample Code:</p>
  
  <p>Class:</p>
  
  <pre><code>public class MyClass{
    public boolean foo(MyObject1 lhs, MyObject2 rhs){
      //doSomething
      //return something
    }
  }
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>.... //initilization of myClass, etc.
  @Test
  public void testFoo(){
    assertTrue(myClass.foo(new MyObject1(), new MyObject2());
  }
  </code></pre>