aspose file tools*
The moose likes Testing and the fly likes junit testcases for emails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "junit testcases for emails" Watch "junit testcases for emails" New topic
Author

junit testcases for emails

srija _kr
Greenhorn

Joined: Feb 17, 2008
Posts: 2
Hiii

Could you provide some examples of junit testcases for email application
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
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?


Ping & DNS - my free Android networking tools app
srija _kr
Greenhorn

Joined: Feb 17, 2008
Posts: 2
Hiii
Too start of with
give me a simple example for checking authentication
username and password
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
"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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: junit testcases for emails