Raghav Maheshwari created KNOX-3443:
---------------------------------------
Summary: Add unit test coverage for MimeTypes
Key: KNOX-3443
URL: https://issues.apache.org/jira/browse/KNOX-3443
Project: Apache Knox
Issue Type: Task
Reporter: Raghav Maheshwari
Add comprehensive unit tests for org.apache.knox.gateway.util.MimeTypes in the
gateway-util-common module.
The tests should cover:
Creating MIME types from valid values
Handling null MIME type input
Adding and preserving charset parameters
Preserving existing MIME type parameters
Handling malformed MIME type values
Getting explicit and default charsets
Setting and replacing charset values
Handling null, empty, unknown, and parameterized MIME types
Case-insensitive and whitespace-tolerant default charset lookup
All configured default MIME type mappings
--
This message was sent by Atlassian Jira
(v8.20.10#820010)