title: How to test Maven module project with Spring Boot
body: <p>I have split a project, based on Spring Boot, into several Maven modules. Now only the war-project contains a starter class (having a main method, starting Spring), the other modules are of type jar.</p>
  
  <p>How do I test the jar projects, if they don't include a starter?</p>
  
  <p><strong>Example JUnit test case header:</strong></p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(StarterClassInDifferentProject.class)
  ...
  </code></pre>