9178668f847ea102d579d432a76bf91acf9c6175
Files Diff
- Added: 79
- Removed: 2
- Renamed: 0
- Modified: 12
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 2 | ||
Change Parameter Type cfg : MockMvcParamConfig to baseConfig : ParamConfig in method private toParamConfig(baseConfig ParamConfig) : ParamConfig in class io.restassured.module.spring.commons.config.ConfigConverter | From | To | |
Change Parameter Type mvcConfig : RestAssuredMockMvcConfig to specificationConfig : SpecificationConfig in method public convertToRestAssuredConfig(specificationConfig SpecificationConfig) : RestAssuredConfig in class io.restassured.module.spring.commons.config.ConfigConverter | From | To | |
Move Method | 8 | ||
Move Method private serializeIfNeeded(object Object, contentType String) : String from class io.restassured.module.mockmvc.internal.MockMvcRequestSpecificationImpl to public serializeIfNeeded(object Object, contentType String, config SpecificationConfig) : String from class io.restassured.module.spring.commons.Serializer | From | To | |
Move Method private findEncoderCharsetOrReturnDefault(contentType String) : String from class io.restassured.module.mockmvc.internal.MockMvcRequestSpecificationImpl to public findEncoderCharsetOrReturnDefault(contentType String, config SpecificationConfig) : String from class io.restassured.module.spring.commons.Serializer | From | To | |
Move Method private urlDecode(content String, charset Charset, plusAsBlank boolean) : String from class io.restassured.filter.log.RequestLoggingFilter to public urlDecode(content String, charset Charset, plusAsBlank boolean) : String from class io.restassured.filter.log.UrlDecoder | From | To | |
Move Method private removeMergedHeadersIfNeeded(headerList List<Header>) : List<Header> from class io.restassured.module.mockmvc.internal.MockMvcRequestSpecificationImpl to private removeMergedHeadersIfNeeded(headerList List<Header>, headerConfig HeaderConfig) : List<Header> from class io.restassured.module.spring.commons.HeaderHelper | From | To | |
Move Method private mapToArray(map Map<String,?>) : Object[] from class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl to public mapToArray(map Map<String,?>) : Object[] from class io.restassured.module.spring.commons.HeaderHelper | From | To | |
Move Method private findContentType() : String from class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl to public findContentType(headers Headers, multiParts List<Object>, config SpecificationConfig) : String from class io.restassured.module.spring.commons.HeaderHelper | From | To | |
Move Method private fileToString(file File, charset String) : String from class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl to private fileToString(file File, charset String) : String from class io.restassured.module.spring.commons.RequestLogger | From | To | |
Move Method private toByteArray(file File) : byte[] from class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl to public toByteArray(file File) : byte[] from class io.restassured.module.spring.commons.BodyHelper | From | To | |
Change Return Type | 1 | ||
Change Return Type MockMvcParamConfig to ParamConfig in method public getParamConfig() : ParamConfig in class io.restassured.module.mockmvc.config.RestAssuredMockMvcConfig | From | To | |
Move Attribute | 1 | ||
Move Attribute private CHARSET : String from class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl to private CHARSET : String from class io.restassured.module.spring.commons.HeaderHelper | From | To | |
Move Class | 4 | ||
Move Class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl.ParamLogger moved to io.restassured.module.spring.commons.ParamLogger | From | To | |
Move Class io.restassured.module.mockmvc.internal.MockMvcRequestSenderImpl.ParamApplier moved to io.restassured.module.spring.commons.ParamApplier | From | To | |
Move Class io.restassured.module.mockmvc.internal.ConfigConverter moved to io.restassured.module.spring.commons.config.ConfigConverter | From | To | |
Move Class io.restassured.module.mockmvc.config.AsyncConfig moved to io.restassured.module.spring.commons.config.AsyncConfig | From | To | |
Extract Interface | 2 | ||
Extract Interface io.restassured.module.spring.commons.config.SpecificationConfig from classes [io.restassured.module.mockmvc.config.RestAssuredMockMvcConfig] | From | To | |
Extract Interface io.restassured.module.spring.commons.config.ClientConfig from classes [io.restassured.module.mockmvc.config.MockMvcConfig] | From | To | |
Rename Parameter | 2 | ||
Rename Parameter cfg : MockMvcParamConfig to baseConfig : ParamConfig in method private toParamConfig(baseConfig ParamConfig) : ParamConfig in class io.restassured.module.spring.commons.config.ConfigConverter | From | To | |
Rename Parameter mvcConfig : RestAssuredMockMvcConfig to specificationConfig : SpecificationConfig in method public convertToRestAssuredConfig(specificationConfig SpecificationConfig) : RestAssuredConfig in class io.restassured.module.spring.commons.config.ConfigConverter | From | To |