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?
Joined: Feb 17, 2008
Hiii Too start of with give me a simple example for checking authentication username and password
Joined: Mar 22, 2005
"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.