Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RunWith(SpringJUnit4ClassRunner.class)
- @ContextConfiguration(locations = { "/load-BMS-data-job-launcher-context.xml" })
- public class SimpleJobLaunchFunctionalTests {
- @Autowired
- private JobLauncherTestUtils jobLauncherUtils;
- @Autowired
- **private JdbcOperations jdbcTemplate;**
- @Autowired
- **private JdbcOperations jdbcTemplateBMS;**
- @Autowired
- public void setDataSource(DataSource dataSource) {
- this.jdbcTemplate = new JdbcTemplate(dataSource);
- }
- @Autowired
- public void setDataSource(DataSource BMSdataSource) {
- this.jdbcTemplateBMS = new JdbcTemplate(BMSdataSource);
- }
- @Before
- public void setUp() {
- jdbcTemplate.update("DELETE from SHADOW_BMS");
- // jdbcTemplate.update("DELETE from CMNREF.CNTRCT_EXTRNL_KEY_REF_V");
- jdbcTemplateBMS.update("DELETE from CNTRCT_EXTRNL_KEY_REF_V");
Add Comment
Please, Sign In to add comment