Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit testcases for emails

 
srija _kr
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiii

Could you provide some examples of junit testcases for email application
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "kr"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, what would those tests check? Are you writing an email protocol implementation, or a client or a server? If the latter, do you have more of a functional test in mind?
 
srija _kr
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiii
Too start of with
give me a simple example for checking authentication
username and password
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"srija _kr", thanks for adjusting your display name, but it's still not OK. A proper first name and last name are required. Please change it accordingly before your next post. Accounts without proper display names are generally closed.

It's hard to test just the login with JavaMail, because that doesn't occur until you try to send a message. So it can't really be tested in isolation from the rest of the mail sending process.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic