01: // Copyright © 2006-2007 ASERT. Released under the Canoo Webtest license.
02: package com.canoo.webtest.plugins.emailtest;
03:
04: import javax.mail.Message;
05: import javax.mail.MessagingException;
06:
07: /**
08: * Deletes a message.
09: *
10: * @author Paul King, ASERT
11: * @webtest.step
12: * category="Email"
13: * name="emailDeleteMessage"
14: * description="Deletes a message with a given <em>messageId</em>."
15: */
16: public class EmailDeleteMessage extends AbstractMessageOperationStep {
17: public EmailDeleteMessage() {
18: super (true);
19: }
20:
21: /**
22: * Perform the operation.
23: *
24: * @param message
25: */
26: protected void performOperation(final Message message)
27: throws MessagingException {
28: getHelper().markForDelete(message);
29: }
30: }
|