rest-assured - Why there are Duplicate methods in Rest-assured like statusCode() and getStatusCode()?
问题描述
Why there are Duplicate methods in Rest-assured framework like response.statusCode()
and response.getStatusCode()
?
There are multiple duplicate methods in Rest-assured like : response.getBody()
and response.body()
, response.getBody().asString()
and response.asString()
, response.statusLine()
and response.getStatusLine()
, response.getHeader("Content-Type")
and response.header("Content-Type"
), and response.contentType()
and response.getContentType()
, etc.
What is the reason behind designing multiple methods for same purpose ?
解决方案
推荐阅读
- scala - 泛型类型如何与scala中的继承一起使用?
- php - 在 Sulu 模板中包含带有 xpointer 的属性
- hadoop - 非云环境中的 GCS 连接器
- c# - 如何摆脱错误“无效的 appsettings.json 文件?
- python - openpyxl 读取表格到 python
- python - 谷歌可乐。IPython.display - 音频在 if 语句中不起作用
- python - 这个python代码有什么问题,它给出了这个错误:UnboundLocalError: local variable 'user' referenced before assignment
- swiftui - RealityKit - 使用 SwiftUI 加载 Reality Composer 场景
- tree - LL 旋转是单个左旋转还是单个右旋转?
- macos - 协同设计的应用程序在 Catalina 重新启动时崩溃,并显示“EXC_CRASH(代码签名无效)”