Interface ITTestCaseManager
-
public interface ITTestCaseManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ITTestCaseManager.MessageSourceType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteAllTestCases()
Delete all the test cases availablejavax.mail.internet.MimeMessage
getMessage(InputStream messageStream)
Get the MimeMessage of the messagejavax.mail.internet.MimeMessage
getMessage(InputStream messageStream, Properties props)
Get the MimeMessage of the messagelong
getTestCaseMessageSize(int testCaseId)
Get a specific test cases message size via provided idint
installTestCase(InputStream is, int profileId)
Install a given test case against the provided Profile IDint
installTestCase(InputStream is, int profileId, String description)
Install a given test case against the provided Profile ID with descriptionList<ProcessingResultBean>
runMessage(ITTestCaseManager.MessageSourceType messageSourceType, InputStream messageAsStr, int profileId)
Handle the given message with the related profile, no TestCase needs to be createdList<ProcessingResultBean>
runMessage(ITTestCaseManager.MessageSourceType messageSourceType, InputStream messageStream, int profileId, Properties props)
Handle the given message with the related profile, no TestCase needs to be createdList<ProcessingResultBean>
runNullMessage(int profileId)
List<ProcessingResultBean>
runTestCase(int testCaseId, int profileId)
Run a specific test case against a specific Profile IDList<ProcessingResultBean>
runTestCase(int testCaseId, int profileId, Properties props)
Run a specific test case against a specific Profile IDList<ProcessingResultBean>
runTestCase(ITTestCaseManager.MessageSourceType messageSourceType, int testCaseId, int profileId)
Run a specific test case against a specific Profile ID while providing the MessageSourceTypeList<ProcessingResultBean>
runTestCase(ITTestCaseManager.MessageSourceType messageSourceType, int testCaseId, int profileId, Properties props)
Run a specific test case against a specific Profile ID while providing the MessageSourceType
-
-
-
Method Detail
-
runMessage
List<ProcessingResultBean> runMessage(ITTestCaseManager.MessageSourceType messageSourceType, InputStream messageAsStr, int profileId) throws RemoteException
Handle the given message with the related profile, no TestCase needs to be created- Parameters:
messageSourceType
- to determine sourceTypemessageAsStr
- to processprofileId
- Profile ID to use- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
runMessage
List<ProcessingResultBean> runMessage(ITTestCaseManager.MessageSourceType messageSourceType, InputStream messageStream, int profileId, Properties props) throws RemoteException
Handle the given message with the related profile, no TestCase needs to be created- Parameters:
messageSourceType
- to determine sourceTypemessageStream
- to processprofileId
- Profile ID to useprops
- properties to be set on generated MimeMessage- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
runNullMessage
List<ProcessingResultBean> runNullMessage(int profileId)
-
installTestCase
int installTestCase(InputStream is, int profileId) throws RemoteException
Install a given test case against the provided Profile ID- Parameters:
is
- an inputstream to the testcaseprofileId
- the id of the profile- Returns:
- int ID of created testcase
- Throws:
RemoteException
- if it breaks
-
installTestCase
int installTestCase(InputStream is, int profileId, String description) throws RemoteException
Install a given test case against the provided Profile ID with description- Parameters:
is
- an inputstream to the testcaseprofileId
- the id of the profiledescription
- description to display- Returns:
- int ID of created testcase
- Throws:
RemoteException
- if it breaks
-
runTestCase
List<ProcessingResultBean> runTestCase(int testCaseId, int profileId) throws RemoteException
Run a specific test case against a specific Profile ID- Parameters:
testCaseId
- the id of the testcaseprofileId
- the id of the profile- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
runTestCase
List<ProcessingResultBean> runTestCase(int testCaseId, int profileId, Properties props) throws RemoteException
Run a specific test case against a specific Profile ID- Parameters:
testCaseId
- the id of the testcaseprofileId
- the id of the profileprops
- properties to be set on generated MimeMessage- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
runTestCase
List<ProcessingResultBean> runTestCase(ITTestCaseManager.MessageSourceType messageSourceType, int testCaseId, int profileId) throws RemoteException
Run a specific test case against a specific Profile ID while providing the MessageSourceType- Parameters:
messageSourceType
- indicate the source of the messagetestCaseId
- the id of the testcaseprofileId
- the id of the profile- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
runTestCase
List<ProcessingResultBean> runTestCase(ITTestCaseManager.MessageSourceType messageSourceType, int testCaseId, int profileId, Properties props) throws RemoteException
Run a specific test case against a specific Profile ID while providing the MessageSourceType- Parameters:
messageSourceType
- indicate the source of the messagetestCaseId
- the id of the testcaseprofileId
- the id of the profileprops
- properties to be set on generated MimeMessage- Returns:
- list of results
- Throws:
RemoteException
- if it breaks
-
getMessage
javax.mail.internet.MimeMessage getMessage(InputStream messageStream) throws javax.mail.MessagingException
Get the MimeMessage of the message- Parameters:
messageStream
- inputstream to the message- Returns:
- message from stream
- Throws:
javax.mail.MessagingException
- if it breaks
-
getMessage
javax.mail.internet.MimeMessage getMessage(InputStream messageStream, Properties props) throws javax.mail.MessagingException
Get the MimeMessage of the message- Parameters:
messageStream
- inputstream to the messageprops
- properties to be set on generated MimeMessage- Returns:
- message from stream
- Throws:
javax.mail.MessagingException
- if it breaks
-
deleteAllTestCases
void deleteAllTestCases() throws IOException
Delete all the test cases available- Throws:
IOException
- if it breaks
-
getTestCaseMessageSize
long getTestCaseMessageSize(int testCaseId)
Get a specific test cases message size via provided id- Parameters:
testCaseId
- to get the test case entity- Returns:
- message size of test case
-
-