Guest User

Untitled

a guest
Oct 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. @RunWith(SpringJUnit4ClassRunner.class)
  2. @ContextConfiguration(locations = { "/load-BMS-data-job-launcher-context.xml" })
  3. public class SimpleJobLaunchFunctionalTests {
  4.  
  5. @Autowired
  6. private JobLauncherTestUtils jobLauncherUtils;
  7.  
  8. @Autowired
  9. **private JdbcOperations jdbcTemplate;**
  10.  
  11. @Autowired
  12. **private JdbcOperations jdbcTemplateBMS;**
  13.  
  14. @Autowired
  15. public void setDataSource(DataSource dataSource) {
  16. this.jdbcTemplate = new JdbcTemplate(dataSource);
  17. }
  18.  
  19. @Autowired
  20. public void setDataSource(DataSource BMSdataSource) {
  21. this.jdbcTemplateBMS = new JdbcTemplate(BMSdataSource);
  22. }
  23.  
  24. @Before
  25. public void setUp() {
  26. jdbcTemplate.update("DELETE from SHADOW_BMS");
  27. // jdbcTemplate.update("DELETE from CMNREF.CNTRCT_EXTRNL_KEY_REF_V");
  28. jdbcTemplateBMS.update("DELETE from CNTRCT_EXTRNL_KEY_REF_V");
Add Comment
Please, Sign In to add comment