RequestMappingRegistryTest

8

tests

0

failures

0

ignored

0.010s

duration

100%

successful

Tests

Test Method name Duration Result
PathPattern 정렬 로직이 예상대로 동작하는지 확인한다 (변수 개수 기준). getHandlerMethod_sortsPatternsByVariableCount() 0.001s passed
다른 HTTP 메서드로 등록된 핸들러는 찾을 수 없어야 한다. getHandler_differentHttpMethod() 0s passed
경로 변수 개수가 적은 패턴이 먼저 매칭되면 안 되고, 정확한 매칭이 이루어져야 한다. getHandler_prefersMoreSpecificPattern() 0s passed
등록되지 않은 경로의 핸들러는 찾을 수 없어야 한다. getHandler_unregisteredPath() 0.001s passed
고정된 경로와 GET 메서드를 올바르게 등록하고 찾아야 한다. registerAndGetHandler_fixedPathGetMethod() 0.001s passed
여러 경로 변수가 있는 경로를 올바르게 등록하고 찾아야 한다. registerAndGetHandler_multiplePathVariables() 0s passed
경로 변수가 있는 경로를 올바르게 등록하고 찾아야 한다. registerAndGetHandler_pathVariable() 0.003s passed
동일한 경로에 여러 HTTP 메서드를 등록하고 각각 찾아야 한다. registerAndGetHandler_samePathDifferentMethods() 0.004s passed

Standard output

Registering request mapping for /users/{id} with http method GET
Registering request mapping for /users/{id} with http method PUT
Registering request mapping for /users/{id} with http method DELETE
Registering request mapping for /api/v1/resource with http method GET
Registering request mapping for /api/v1/{id} with http method GET
Registering request mapping for /{var1}/path/{var2} with http method GET
Registering request mapping for / with http method GET
Registering request mapping for /categories/{category}/products/{productId} with http method GET
Registering request mapping for /users/{id} with http method GET
Registering request mapping for /users with http method GET
Registering request mapping for /users/{id} with http method GET
Registering request mapping for /users with http method POST
Registering request mapping for /home with http method GET