title: Spring boot tests - Can't find test properties
body: <p>I have a spring boot project and it works great. I now want to write tests for my application and I am running into some configuration headaches.</p>
  
  <p>Spring boot created a test class for me called ApplicationTests. It's real simple and it looks like this:</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest
  public class DuurzaamApplicationTests {
      @Test
      public void contextLoads() {
      }    
  }
  </code></pre>
  
  <p>Now when I start the tests I get this error:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Could not resolve placeholder 'company.upload' in value "${company.upload}"
  </code></pre>
  
  <p>I have a properties.yml file in the src/test/resources directory and for some reason it isn't loaded. I have tried all different kind of annotations from examples on the Internet and yet none of them work. </p>
  
  <p>How can I tell spring boot tests to use an application.yml file to load the properties from?</p>