Package org.opennms.core.test.rest
Class AbstractSpringJerseyRestJsonTestCase
- java.lang.Object
-
- org.opennms.core.test.rest.AbstractSpringJerseyRestTestCase
-
- org.opennms.core.test.rest.AbstractSpringJerseyRestJsonTestCase
-
public abstract class AbstractSpringJerseyRestJsonTestCase extends AbstractSpringJerseyRestTestCase
- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCEPT
-
Fields inherited from class org.opennms.core.test.rest.AbstractSpringJerseyRestTestCase
contextPath, CXF_REST_V1_CONTEXT_PATH, CXF_REST_V2_CONTEXT_PATH, DELETE, GET, POST, PUT, servletContext, webApplicationContext
-
-
Constructor Summary
Constructors Constructor Description AbstractSpringJerseyRestJsonTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createCategory()
protected void
createIpInterface()
protected void
createNode(int statusCode)
protected void
createService()
protected void
createSnmpInterface()
protected org.springframework.mock.web.MockHttpServletResponse
sendPost(java.lang.String url, java.lang.String xml, int statusCode, java.lang.String expectedUrlSuffix)
protected java.lang.String
sendRequest(org.springframework.mock.web.MockHttpServletRequest request, int expectedStatus, java.lang.String expectedUrlSuffix)
-
Methods inherited from class org.opennms.core.test.rest.AbstractSpringJerseyRestTestCase
afterServletDestroy, afterServletStart, beforeServletDestroy, beforeServletStart, cleanUpImports, createNode, createRequest, createRequest, createRequest, createRequest, createResponse, dispatch, getContextListener, getDispatcher, getFilter, getJsonObject, getQueryString, getServletConfig, getUser, getUserRoles, getXmlObject, getXmlObject, parseParamData, putXmlObject, sendData, sendPost, sendPut, sendPut, sendRequest, sendRequest, sendRequest, sendRequest, setContextListener, setDispatcher, setFilter, setServletConfig, setUp, setUser, stringifyResponse, tearDown
-
-
-
-
Method Detail
-
sendPost
protected org.springframework.mock.web.MockHttpServletResponse sendPost(java.lang.String url, java.lang.String xml, int statusCode, java.lang.String expectedUrlSuffix) throws java.lang.Exception
- Overrides:
sendPost
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
sendRequest
protected java.lang.String sendRequest(org.springframework.mock.web.MockHttpServletRequest request, int expectedStatus, java.lang.String expectedUrlSuffix) throws java.lang.Exception, java.io.UnsupportedEncodingException
- Overrides:
sendRequest
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
java.io.UnsupportedEncodingException
-
createNode
protected void createNode(int statusCode) throws java.lang.Exception
- Overrides:
createNode
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
createIpInterface
protected void createIpInterface() throws java.lang.Exception
- Overrides:
createIpInterface
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
createSnmpInterface
protected void createSnmpInterface() throws java.lang.Exception
- Overrides:
createSnmpInterface
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
createService
protected void createService() throws java.lang.Exception
- Overrides:
createService
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
createCategory
protected void createCategory() throws java.lang.Exception
- Overrides:
createCategory
in classAbstractSpringJerseyRestTestCase
- Throws:
java.lang.Exception
-
-