Spring Integration Testing: Could not detect default resource locations
<p>I am running integration tests for my Spring Boot application with Maven's Failsafe plugin. When I create a simple test such as this one:</p>

<pre><code>@RunWith (SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(App.class)
public class MyTestIT {

    @Test
    public void test() {
        assertTrue (true);
    }
}
</code></pre>

<p>And then run <code>mvn verify</code> I see the following log entries just before the Spring application starts (e.g. even before the Spring Boot banner):</p>

<pre><code>Running org.....MyTestIT
2016-04-14 13:25:01.166  INFO ???? --- [           main] 
    or.sp.te.co.su.AbstractContextLoader               : 
    Could not detect default resource locations for test class 
    [org....MyTestIT]: no resource found for suffixes
    {-context.xml, Context.groovy}.
2016-04-14 13:25:01.175  INFO ???? --- [           main] 
    or.sp.te.co.su.DefaultTestContextBootstrapper      : 
    Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2016-04-14 13:25:01.185  INFO ???? --- [           main] 
    or.sp.te.co.su.DefaultTestContextBootstrapper      : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@57c758ac, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@a9cd3b1, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@13e39c73, org.springframework.test.context.support.DirtiesContextTestExecutionListener@64cd705f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@9225652, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@654f0d9c]
</code></pre>

<p>Followed by the Spring Boot banner. The tests then run through without any error. While these messages are printed with an INFO log level and the tests run fine, I guess everything is fine, <strong>but I still find these messages irritating.</strong> So is there something wrong with my configuration? <strong>Should I worry about these messages?</strong></p>

<p>Even if there was nothing wrong, I would still like to understand whats happending there and what the messages mean.</p>

<p>My <code>maven-failsafe-plugin</code> is just using the default configuration and my <code>App.java</code> is just a simple class annotated with <code>@SpringBootApplication</code>.</p>

<p><strong>UPDATE 1:</strong></p>

<p>Here is the configuration of my test plugins:</p>

<pre><code>  &lt;plugin&gt;
    &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
      &lt;!-- Ignore any tests that are marked by the @IntegrationTest annotation of Spring Boot --&gt;
      &lt;excludedGroups&gt;org.springframework.boot.test.IntegrationTest&lt;/excludedGroups&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;

  &lt;plugin&gt;
    &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.19.1&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;integration-test&lt;/id&gt;
        &lt;goals&gt;
          &lt;goal&gt;integration-test&lt;/goal&gt;
        &lt;/goals&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
</code></pre>

<p>I also have a <code>spring-boot-starter-test</code> dependency configured and I am using <code>spring-boot-devtools</code>. Besides that everything else is not test related.</p>

<p>The project it self is pretty standard, using hibernate and mysql and web-mvc for rest endpoints. I have two configuration classes for spring security on the class pass.</p>

<p>In the <code>main/resources</code> folder I have an <code>application.properties</code> file and a log4j2.xml. There is no <code>test/resources</code> folder, but when I just copy the main/resources folder to <code>test/resources</code> the above log messages still appear.</p>

<p><strong>UPDATE 2:</strong>
I just created a small sample application trying to recreate the issue, and it seems the mentioned log-output starts to appear as soon as I put a <code>log4j2.xml</code> file into a resources folder. I tried putting it in <code>src/main</code> or <code>src/test</code> or both with identical effects.</p>