|
SOAj Consolidated |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
info.soaj.core.unittest.SjBaseOutsideContainerTestCase
info.soaj.core.unittest.internal.SjPluginTextEmailExampleTest
public class SjPluginTextEmailExampleTest
This is a unit test class.
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .
| Field Summary | |
|---|---|
private SjAbstractPluginEmail |
emailPlugin
UID |
private static long |
serialVersionUID
UID |
| Fields inherited from class info.soaj.core.unittest.SjBaseOutsideContainerTestCase |
|---|
descriptorDocumentStatus, NO_DESCRIPTOR_DOCUMENT_REQUIRED, startTime, USE_DEFAULT_DESCRIPTOR_DOCUMENT |
| Constructor Summary | |
|---|---|
SjPluginTextEmailExampleTest()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
initCB()
This callback method is invoked upon construction and establishes the descriptor document used for each unit test method following the clearing of plugin cache. |
private java.lang.String |
readMailServerPassword()
Reads property for mail server password. |
protected void |
setUp()
Callback method for every test. |
void |
testSendTextEmail_mostlyDeclarative()
This method tests text email. |
void |
testSendTextEmail_mostlyProgramatic()
This method tests text email. |
| Methods inherited from class info.soaj.core.unittest.SjBaseOutsideContainerTestCase |
|---|
assertException, assertExceptionContext, fail, tearDown |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private SjAbstractPluginEmail emailPlugin
| Constructor Detail |
|---|
public SjPluginTextEmailExampleTest()
| Method Detail |
|---|
protected java.lang.String initCB()
This callback method is invoked upon construction and establishes the descriptor document used for each unit test method following the clearing of plugin cache.
Many unit tests do not have plugin activation dependencies and therefore do not require descriptor document parsing. In that case, return:
----> NO_DESCRIPTOR_DOCUMENT_REQUIREDIf the default descriptor document is required then return:
----> USE_DEFAULT_DESCRIPTOR_DOCUMENTIf a custom descriptor document (on the classpath) is needed then return a
String similar to:
----> "soaj-myplugin-example-properties-test.xml"
initCB in class SjBaseOutsideContainerTestCase
protected void setUp()
throws java.lang.Exception
setUp in class SjBaseOutsideContainerTestCasejava.lang.ExceptionSjBaseOutsideContainerTestCase.setUp()
public void testSendTextEmail_mostlyProgramatic()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.IOException
java.io.FileNotFoundException
public void testSendTextEmail_mostlyDeclarative()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.IOException
java.io.FileNotFoundException
private java.lang.String readMailServerPassword()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.IOException
java.io.FileNotFoundException
|
SOAj Consolidated |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.