|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.james.core.MimeMessageTest org.apache.james.core.MimeMessageFromStreamTest org.apache.james.core.MimeMessageCopyOnWriteProxyTest
public class MimeMessageCopyOnWriteProxyTest
Constructor Summary | |
---|---|
MimeMessageCopyOnWriteProxyTest()
|
Method Summary | |
---|---|
protected javax.mail.internet.MimeMessage |
getMessageFromSources(java.lang.String sources)
|
void |
testMessageAvoidCloning()
If I create a new MimeMessageCopyOnWriteProxy from another MimeMessageCopyOnWriteProxy, I remove references to the first and I change the second, then it should not clone |
void |
testMessageCloning1()
|
void |
testMessageCloning2()
|
void |
testMessageCloning3()
If I create a new MimeMessageCopyOnWriteProxy from a MimeMessage and I change the new message, the original should be unaltered and the proxy should clone the message. |
void |
testMessageCloningViaCoW3()
This test throw a NullPointerException when the original message was created by a MimeMessageInputStreamSource. |
void |
testMessageDisposing()
|
void |
testNPE1()
|
Methods inherited from class org.apache.james.core.MimeMessageFromStreamTest |
---|
getMessageWithBadReturnPath, getMissingEncodingAddHeaderMessage, getMissingEncodingMessage, getMultipartMessage, getSimpleMessage |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MimeMessageCopyOnWriteProxyTest()
Method Detail |
---|
protected javax.mail.internet.MimeMessage getMessageFromSources(java.lang.String sources) throws java.lang.Exception
getMessageFromSources
in class MimeMessageFromStreamTest
java.lang.Exception
public void testMessageCloning1() throws java.lang.Exception
java.lang.Exception
public void testMessageCloning2() throws java.lang.Exception
java.lang.Exception
public void testMessageAvoidCloning() throws java.lang.Exception
java.lang.Exception
public void testMessageCloning3() throws java.lang.Exception
java.lang.Exception
public void testMessageDisposing() throws java.lang.Exception
java.lang.Exception
public void testNPE1() throws javax.mail.MessagingException, java.lang.InterruptedException
javax.mail.MessagingException
java.lang.InterruptedException
public void testMessageCloningViaCoW3() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |