java - Are there any test SMTP servers that can simulate error responses? -


I have a set of Java, email related unit testing, which is currently WISER as a test SMTP server Are using It works very well for basic email testing (send an email, check to make sure that it has been received, etc.), but I have the argument that I failed to retry the email from the SMTP server Returns based on the returned error. Does anyone know if there is any testing SMTP server that supports rigging to answer them in a given way? Preferably, a pure Java server that can be adopted by unit tests, would be best, but any stand-alone server that fits the bill, it will work. Thank you.

Kohusuke Kawaguchi wrote a javaMail provider for unit tests, and I know that this is a mistake Position supports simulation. You can see it here:

Error simulation is very simple, they say,

The mailbox can be marked as an 'error' program, which Causes the failure to send / receive to all. This can be used to test the application's error management behavior.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -