Class TestCase
- java.lang.Object
-
- org.apache.synapse.unittest.testcase.data.classes.TestCase
-
public class TestCase extends Object
-
-
Constructor Summary
Constructors Constructor Description TestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AssertEqual>
getAssertEquals()
Get assert equals set of particular test case.List<AssertNotNull>
getAssertNotNull()
Get assert not null set of particular test case.String
getInputPayload()
Get input payload of particular test case.List<Map<String,String>>
getPropertyMap()
Get input property values of particular test case.String
getProtocolType()
Get request protocol type of the test caseString
getRequestMethod()
Get request method of particular test case.String
getRequestPath()
Get request path of particular test case.String
getTestCaseName()
Get name of the test case.void
setAssertEquals(List<AssertEqual> assertEquals)
Add assertEquals set into a ArrayList.void
setAssertNotNull(List<AssertNotNull> assertNotNull)
Add assertNotNull set into a ArrayList.void
setInputPayload(String inputPayload)
Add input payload into a ArrayList.void
setPropertyMap(List<Map<String,String>> propertyMap)
Add input property values into a ArrayList.void
setProtocolType(String protocolType)
Set protocol type of the test casevoid
setRequestMethod(String requestMethod)
Add requestMethod.void
setRequestPath(String requestPath)
Add requestPath.void
setTestCaseName(String testCaseName)
Set test case name.
-
-
-
Method Detail
-
getTestCaseName
public String getTestCaseName()
Get name of the test case.- Returns:
- name of the requested test case
-
getInputPayload
public String getInputPayload()
Get input payload of particular test case.- Returns:
- input payload of requested test case
-
getPropertyMap
public List<Map<String,String>> getPropertyMap()
Get input property values of particular test case.- Returns:
- expected property values of requested test case
-
getAssertEquals
public List<AssertEqual> getAssertEquals()
Get assert equals set of particular test case.- Returns:
- assert equals set of requested test case
-
getAssertNotNull
public List<AssertNotNull> getAssertNotNull()
Get assert not null set of particular test case.- Returns:
- assert not null set of requested test case
-
getRequestPath
public String getRequestPath()
Get request path of particular test case.- Returns:
- request path of requested test case
-
getRequestMethod
public String getRequestMethod()
Get request method of particular test case.- Returns:
- request method of requested test case
-
getProtocolType
public String getProtocolType()
Get request protocol type of the test case- Returns:
- protocol type of the test case
-
setProtocolType
public void setProtocolType(String protocolType)
Set protocol type of the test case- Parameters:
protocolType
- Protocol type to set
-
setInputPayload
public void setInputPayload(String inputPayload)
Add input payload into a ArrayList.- Parameters:
inputPayload
- input payload of a particular test case
-
setPropertyMap
public void setPropertyMap(List<Map<String,String>> propertyMap)
Add input property values into a ArrayList.- Parameters:
propertyMap
- input property values of a particular test case
-
setAssertEquals
public void setAssertEquals(List<AssertEqual> assertEquals)
Add assertEquals set into a ArrayList.- Parameters:
assertEquals
- assertEquals set of a particular test case
-
setAssertNotNull
public void setAssertNotNull(List<AssertNotNull> assertNotNull)
Add assertNotNull set into a ArrayList.- Parameters:
assertNotNull
- assertNotNull set of a particular test case
-
setRequestPath
public void setRequestPath(String requestPath)
Add requestPath.- Parameters:
requestPath
- requestPath of a particular test case
-
setRequestMethod
public void setRequestMethod(String requestMethod)
Add requestMethod.- Parameters:
requestMethod
- requestMethod of a particular test case
-
setTestCaseName
public void setTestCaseName(String testCaseName)
Set test case name.- Parameters:
testCaseName
- name of the particular test case
-
-