title: How to populate database only once before @Test methods in spring test?
body: <p>My next problem testing spring service layer with junit4 is:
  How to call script that populates database only once before all @Test methods:
  I want to execute this once before all  @Tests:</p>
  
  <pre><code>JdbcTestUtils.executeSqlScript(jdbcTemplate(), new FileSystemResource(
  "src/main/resources/sql/mysql/javahelp-insert.sql"), false);
  </code></pre>
  
  <p>I tried to use @PostConstruct on my GenericServiceTest class(extended by test classes).
  It turned out that @PostConstruct is called every time before every @Test method. Interesting is that even methods annotated @Autowired of GenericServiceTest are called before every @Test method.</p>
  
  <p>I don't want to populate database before every test class but only once at spring-test startup.</p>
  
  <p><em>How to execute above method only once before all @Test methods with spring testing framework and junit4?</em></p>
  
  <p>Thank you!</p>