PathVariableArgumentResolverTest
Tests
Test |
Method name |
Duration |
Result |
[1] methodName=testMethodWithAnnotationInt, parameterIndex=1, pathVarName=id, pathVarValue=789, expectedType=java.lang.Integer, expectedValue=789 |
resolve_ConvertPathVariableToTargetType(String, int, String, String, String, String)[1] |
0.004s |
passed |
[2] methodName=testMethodWithAnnotation, parameterIndex=0, pathVarName=id, pathVarValue=testName, expectedType=java.lang.String, expectedValue=testName |
resolve_ConvertPathVariableToTargetType(String, int, String, String, String, String)[2] |
0.002s |
passed |
should resolve path variable using parameter name when value is empty |
resolve_EmptyPathVariableName_ReturnsCorrectValue() |
0.001s |
passed |
should resolve path variable with explicit name |
resolve_ExplicitPathVariableName_ReturnsCorrectValue() |
0.003s |
passed |
should throw IllegalArgumentException if path variable not found |
resolve_PathVariableNotFound_ThrowsException() |
0.002s |
passed |
should not support parameters without PathVariable annotation |
supports_NonPathVariableParameter_ReturnsFalse() |
0.001s |
passed |
should support parameters annotated with PathVariable |
supports_PathVariableAnnotatedParameter_ReturnsTrue() |
0.001s |
passed |