1 19 20 21 22 package org.apache.james.transport.mailets; 23 24 import org.apache.mailet.GenericMailet; 25 import org.apache.mailet.Mail; 26 import org.apache.mailet.MailetConfig; 27 28 import javax.mail.MessagingException ; 29 30 public class MailetLoaderTestMailet extends GenericMailet { 31 private boolean m_initWasCalled = false; 32 33 public void service(Mail mail) throws MessagingException { 34 throw new Error ("should not be called by loader"); 35 } 36 37 public void init(MailetConfig newConfig) throws MessagingException { 38 super.init(newConfig); 39 m_initWasCalled = true; 40 } 41 42 public boolean assertInitCalled() { 43 return m_initWasCalled; 44 } 45 46 } 47 | Popular Tags |