Class BaseApiDocumentationTest

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public abstract class BaseApiDocumentationTest
    extends XLReleaseIntegrationTest
    • Field Detail

      • 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 Detail

      • BaseApiDocumentationTest

        public BaseApiDocumentationTest()
    • Method Detail

      • 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.RequestParametersSnippet 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,
                                                                                                     java.lang.String prefix)
      • variableRequestSnippet

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

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

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

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

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

        protected java.lang.String toJson​(java.lang.Object ci)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception