title: jhipster java tests failing - application properties
body: <p>I have generated a jhipster monolithic app. I have created a class to connect with the AWS S3 and upload a file there. I defined the properties in .yml file. Here everything works fine.</p>
  <p>When I am trying to run the provided tests, most of them are failing with the following error:</p>
  <p><strong>Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's3AutoConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'aws.endpoint.url' in value &quot;${aws.endpoint.url}&quot;</strong></p>
  <p>S3AutoConfig is the class which uses the properties.
  I checked jhipster's documenation and several posts, like the one below:
  <a href="https://stackoverflow.com/questions/42871453/adding-applicationproperties-in-jhipster">Adding applicationproperties in Jhipster</a></p>
  <p>which mention that you should provide the properties in the ApplicationProperties class (seems a bit redundant).</p>
  <p>I defined the properties also in the java class, but the tests are still failing with the same error above.</p>
  <p>How should I define the properties, so they are picked up by the tests? Is it necessary to provide them also in the java class as some posts suggest?</p>
  <p><a href="https://i.stack.imgur.com/9uxoF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9uxoF.png" alt="properties" /></a></p>