Class BaseApiDocumentationTest

java.lang.Object
com.xebialabs.deployit.plumbing.XLReleaseTest
com.xebialabs.xlrelease.XLReleaseIntegrationTest
com.xebialabs.xlrelease.api.v1.BaseApiDocumentationTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public abstract class BaseApiDocumentationTest extends XLReleaseIntegrationTest
  • Field Details

    • restDocumentation

      public org.springframework.restdocs.JUnitRestDocumentation restDocumentation
    • loginRule

      public com.xebialabs.xlrelease.rules.LoginRule loginRule
    • mockMvc

      protected org.springframework.test.web.servlet.MockMvc mockMvc
    • documentationHandler

      protected org.springframework.restdocs.mockmvc.RestDocumentationResultHandler documentationHandler
  • Constructor Details

    • BaseApiDocumentationTest

      public BaseApiDocumentationTest()
  • Method Details

    • setUp

      public void setUp()
    • getRequestDocsPreprocessors

      protected org.springframework.restdocs.operation.preprocess.OperationPreprocessor[] getRequestDocsPreprocessors()
    • markForDeletion

      protected void markForDeletion(org.springframework.test.web.servlet.MvcResult result)
    • paginatedRequestParametersSnippet

      protected org.springframework.restdocs.request.QueryParametersSnippet paginatedRequestParametersSnippet()
    • ciRequestFieldsSnippet

      protected org.springframework.restdocs.payload.RequestFieldsSnippet ciRequestFieldsSnippet(com.xebialabs.deployit.plugin.api.reflect.Type ciType)
    • ciResponseFieldsSnippet

      protected org.springframework.restdocs.payload.ResponseFieldsSnippet ciResponseFieldsSnippet(com.xebialabs.deployit.plugin.api.reflect.Type ciType)
    • ciResponseFieldsSnippet

      protected org.springframework.restdocs.payload.ResponseFieldsSnippet ciResponseFieldsSnippet(com.xebialabs.deployit.plugin.api.reflect.Type ciType, String prefix)
    • variableRequestSnippet

      protected org.springframework.restdocs.payload.RequestFieldsSnippet variableRequestSnippet()
    • releaseFiltersSnippet

      protected org.springframework.restdocs.payload.RequestFieldsSnippet releaseFiltersSnippet()
    • toJson

      protected String toJson(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci) throws Exception
      Throws:
      Exception
    • toJsonWithPlainTextPassword

      protected String toJsonWithPlainTextPassword(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci) throws Exception
      Throws:
      Exception
    • toJson

      protected String toJson(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> cis) throws Exception
      Throws:
      Exception
    • toJson

      protected String toJson(Object ci) throws Exception
      Throws:
      Exception