title: Getting junit.framework.AssertionFailedError: No tests found in [package] when using Unit and Mockito
body: <p>I added the following dependencies to my android project:</p>
  
  <pre><code> // Unit testing dependencies
  androidTestCompile 'junit:junit:4.12'
  // Set this dependency if you want to use Mockito
  androidTestCompile 'org.mockito:mockito-core:1.10.19'
  </code></pre>
  
  <p>And create a test using junit4 api (an example, Adder is a simple class that sums ints):</p>
  
  <pre><code>@RunWith(MockitoJUnitRunner.class) 
  public class AdderTest {
  
      @Test
      public void testValidAdd() {
          Adder adder = new Adder();
          assertEquals(adder.add(1,1), 2);
      }
  }
  </code></pre>
  
  <p>When I try to run the test, I get:</p>
  
  <blockquote>
    <p>Running tests
    Test running started
    junit.framework.AssertionFailedError: No tests found in com.test.myapp.AdderTest
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
    at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
    at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
    Finish</p>
  </blockquote>
  
  <p>I read <a href="https://stackoverflow.com/questions/7472319/junit-framework-assertionfailederror-no-tests-found-in-xyz-package">here</a> and <a href="https://stackoverflow.com/a/2983085/876603">here</a>, but nothing helps.</p>
  
  <p>Does anyone see what I'm doing wrong / have any input?</p>