test▌
141 indexed skills · max 10 per page
unit-test-config-properties
giuseppe-trisciuoglio/developer-kit · Testing
Test Spring @ConfigurationProperties bindings, validation, and type conversions without full context startup. \n \n Use ApplicationContextRunner to test property binding in isolation, covering simple properties, nested structures, collections, and type conversions \n Verify validation constraints with @Validated annotations, ensuring invalid values fail appropriately and valid configurations pass \n Test default values, profile-specific configurations, and property name mapping (kebab-case to ca
alicloud-media-mps-test
cinience/alicloud-skills · Cloud
Category: test
alicloud-ai-translation-anytrans-test
cinience/alicloud-skills · Cloud
Category: test
alicloud-platform-docs-api-review-test
cinience/alicloud-skills · Cloud
Category: test
unit-test-security-authorization
giuseppe-trisciuoglio/developer-kit · Testing
Unit testing patterns for Spring Security authorization annotations and role-based access control. \n \n Covers @PreAuthorize , @Secured , and @RolesAllowed method-level security with @WithMockUser test fixtures \n Includes role-based access control (RBAC), expression-based authorization, and custom PermissionEvaluator testing \n Provides MockMvc patterns for testing secured REST endpoints and parameterized role testing strategies \n Demonstrates both allow and deny scenarios, owner-based access
unit-test-mapper-converter
giuseppe-trisciuoglio/developer-kit · Testing
Unit testing patterns for MapStruct mappers and custom converters with comprehensive transformation validation. \n \n Covers field mapping accuracy, null handling, type conversions, nested objects, bidirectional mapping, enum mapping, and partial updates \n Includes Maven and Gradle setup with MapStruct, JUnit 5, and AssertJ dependencies \n Provides patterns for testing simple mappings, nested hierarchies, custom @Mapping annotations, enum @ValueMapping , and @MappingTarget partial updates \n De
unit-test-exception-handler
giuseppe-trisciuoglio/developer-kit · Testing
Unit testing patterns for Spring @ExceptionHandler and @ControllerAdvice global exception handlers. \n \n Test exception-to-error-response transformations and HTTP status codes using MockMvc with setControllerAdvice() to register handlers \n Verify error response structure includes required fields (timestamp, status, error, message) and test field-level validation errors from MethodArgumentNotValidException \n Cover multiple exception types with appropriate status codes (404, 409, 401, 403, 500)
unit-test-controller-layer
giuseppe-trisciuoglio/developer-kit · Testing
Unit testing REST controllers in isolation with MockMvc and mocked service dependencies. \n \n Covers testing all HTTP methods (GET, POST, PUT, PATCH, DELETE) with status code and response body validation using JsonPath assertions \n Includes patterns for request parameter binding, validation errors, exception handling, and content negotiation across different Accept and Content-Type headers \n Uses standalone MockMvc setup with Mockito to mock service layer dependencies, keeping tests focused o
alicloud-ai-entry-modelstudio-test-test
cinience/alicloud-skills · Cloud
Category: test
unit-test-json-serialization
giuseppe-trisciuoglio/developer-kit · Testing
Unit testing JSON serialization and deserialization with Spring's @JsonTest and Jackson. \n \n Covers serialization/deserialization of POJOs, custom serializers/deserializers, field name mappings with @JsonProperty , and null handling using JacksonTester for type-safe assertions \n Includes patterns for testing nested objects, lists, date/time formatting, and polymorphic types with @JsonTypeInfo \n Provides Maven and Gradle setup, best practices for avoiding circular references and null inclusio