title: JUnit testing got initializationError with java.lang.Exception: No tests found matching
body: <p>
  When running JUnit testing , it gave an initializationError: No tests found matching. Like this:</p>
  
  <pre><code>prodapi-main-junit
  initializationError(org.junit.runner.manipulation.Filter)
  java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testCreateSite], {ExactMatcher:fDisplayName=testCreateSite(com.company.product.api.web.rest.HostControllerTest)], {LeadingIdentifierMatcher:fClassName=com.company.product.api.web.rest.HostControllerTest,fLeadingIdentifier=testCreateSite]] from org.junit.internal.requests.ClassRequest@3c0f93f1
      at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:77)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:68)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
  </code></pre>
  
  <p>
  While the testing code is as below:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(classes = ProductApplication.class)
  @WebAppConfiguration
  public class HostControllerTest{
      @Test
      public void testCreateSite() throws Exception {
      ......
  }
  }
  </code></pre>
  
  <p>
  It should be fine to load the class, running well. There're other modules similar with this one, they're fine to run. </p>
  
  <p>I have checked the possible causes:</p>
  
  <ol>
  <li>someone said that missing "Test" annotation result in this error. 
  While the code did have the annotation as you can see.</li>
  <li>some said the build path should be configured to do the build under the testing source folder, getting the testing class, and export.
  And that configuration I double-checked worked as well.</li>
  <li>maybe testing classes are not generated in the compile time, while I can see those testing classes under the destination folder.</li>
  </ol>
  
  <p>I don't know whether there're any other possible things can get Junit testing error like this. Maybe I should check the class loader?</p>