public abstract class AbstractEndpointTest
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
protected ItemValue<Device> |
device |
protected java.lang.String |
devId |
protected java.lang.String |
devType |
protected java.lang.String |
domainUid |
protected WbxmlHandlerBase |
endpoint |
protected ResponseObject |
lastAsyncResponse |
protected java.lang.String |
login |
protected ItemValue<User> |
owner |
protected java.lang.String |
password |
protected RequestsFactory |
reqFactory |
protected TestDeviceHelper.TestDevice |
testDevice |
protected java.lang.String |
vmHostname |
Constructor and Description |
---|
AbstractEndpointTest() |
Modifier and Type | Method and Description |
---|---|
protected TestMail |
appendEmail(java.lang.String subject) |
protected TestMail |
appendEmail(java.lang.String mbox,
java.io.InputStream in,
FlagsList fl) |
protected TestMail |
appendEml(java.lang.String mbox,
java.lang.String emlPath,
FlagsList fl) |
abstract WbxmlHandlerBase |
createEndpoint() |
protected boolean |
fetchEmail(java.lang.String folder,
int uid) |
protected org.w3c.dom.Document |
newDocument(java.lang.String ns,
java.lang.String rootElem) |
protected void |
rmAddedMails() |
protected ResponseObject |
runEndpoint(org.w3c.dom.Document document) |
protected ResponseObject |
runEndpoint(WbxmlHandlerBase handler,
org.w3c.dom.Document document) |
protected ResponseObject |
runEndpoint(WbxmlHandlerBase handler,
org.w3c.dom.Document document,
java.util.Map<java.lang.String,java.lang.String> customHeaders) |
protected ResponseObject |
runEndpointNoBody(java.lang.String cmd) |
void |
setUp() |
protected java.io.InputStream |
stream(java.lang.String res) |
void |
tearDown() |
protected void |
updateMessage(TestMail toFlag,
FlagsList fl) |
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected WbxmlHandlerBase endpoint
protected RequestsFactory reqFactory
protected java.lang.String devId
protected java.lang.String devType
protected java.lang.String login
protected java.lang.String password
protected java.lang.String vmHostname
protected TestDeviceHelper.TestDevice testDevice
protected java.lang.String domainUid
protected ResponseObject lastAsyncResponse
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public abstract WbxmlHandlerBase createEndpoint()
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
protected ResponseObject runEndpoint(org.w3c.dom.Document document)
protected ResponseObject runEndpoint(WbxmlHandlerBase handler, org.w3c.dom.Document document)
protected ResponseObject runEndpointNoBody(java.lang.String cmd)
protected ResponseObject runEndpoint(WbxmlHandlerBase handler, org.w3c.dom.Document document, java.util.Map<java.lang.String,java.lang.String> customHeaders)
protected org.w3c.dom.Document newDocument(java.lang.String ns, java.lang.String rootElem)
protected TestMail appendEmail(java.lang.String subject) throws java.lang.Exception
java.lang.Exception
protected TestMail appendEmail(java.lang.String mbox, java.io.InputStream in, FlagsList fl) throws java.lang.Exception
java.lang.Exception
protected boolean fetchEmail(java.lang.String folder, int uid) throws IMAPException, java.io.IOException
IMAPException
java.io.IOException
protected java.io.InputStream stream(java.lang.String res)
protected TestMail appendEml(java.lang.String mbox, java.lang.String emlPath, FlagsList fl) throws java.lang.Exception
java.lang.Exception
protected void updateMessage(TestMail toFlag, FlagsList fl) throws IMAPException
IMAPException
protected void rmAddedMails() throws IMAPException
IMAPException
Copyright © 2021. All Rights Reserved.