mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-05-30 12:17:21 +00:00
rename functions names in NewRequestExceptionTests
This commit is contained in:
@@ -17,21 +17,21 @@ class NewRequestExceptionTests {
|
|||||||
)
|
)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `TooMuchRequestsException is created for canonical casing`() {
|
fun tooMuchRequestsExceptionIsCreatedForCanonicalCasing() {
|
||||||
assertIs<TooMuchRequestsException>(
|
assertIs<TooMuchRequestsException>(
|
||||||
buildException("Bad Request: Too Many Requests: retry after 8")
|
buildException("Bad Request: Too Many Requests: retry after 8")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `TooMuchRequestsException is created for lowercase first-letter casing`() {
|
fun tooMuchRequestsExceptionIsCreatedForLowercaseFirstLetterCasing() {
|
||||||
assertIs<TooMuchRequestsException>(
|
assertIs<TooMuchRequestsException>(
|
||||||
buildException("Bad Request: too Many Requests: retry after 8")
|
buildException("Bad Request: too Many Requests: retry after 8")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `TooMuchRequestsException is created for all-lowercase casing`() {
|
fun tooMuchRequestsExceptionIsCreatedForAllLowercaseCasing() {
|
||||||
assertIs<TooMuchRequestsException>(
|
assertIs<TooMuchRequestsException>(
|
||||||
buildException("Bad Request: too many requests: retry after 8")
|
buildException("Bad Request: too many requests: retry after 8")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user