Advertisement
Guest User

Untitled

a guest
Oct 4th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @DataProvider
  2. public Object[][] testInfo() throws IOException {
  3. return new Object[][] {
  4.  
  5. {"mail1@yandex.ru","password","mail2@yandex.ru","password2"},
  6. {"mail3@yandex.ru","password3","mail4@yandex.ru","password4"},
  7. {"mail5@yandex.ru","password5","mail6@yandex.ru","password6"},
  8.  
  9. };
  10. }
  11. @Test(dataProvider = "testInfo")
  12. public void mailTest(String emailFrom,String passwordFrom,String emailTo,String passwordTo) throws IOException, MessagingException {
  13. Sender.send(emailFrom, passwordFrom, "mailSubject", "messsage", emailTo);
  14. .
  15. .
  16. .
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement