[
https://issues.apache.org/jira/browse/KNOX-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamás Hanicz resolved KNOX-3443.
--------------------------------
Resolution: Duplicate
> 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
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)