[ 
https://issues.apache.org/jira/browse/KNOX-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118262#comment-18118262
 ] 

ASF subversion and git services commented on KNOX-3452:
-------------------------------------------------------

Commit ef67c1d20293c921b3e9b296d99d8030ad79f360 in knox's branch 
refs/heads/master from Raghav Maheshwari
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=ef67c1d20 ]

KNOX-3452: Add comprehensive unit tests for MimeTypes (#1393)

* KNOX-3452: Add comprehensive unit tests for MimeTypes

* fixed the test as per reviews given by hanicz

---------

Co-authored-by: Raghav Maheshwari <[email protected]>

> Add comprehensive unit tests for MimeTypes
> ------------------------------------------
>
>                 Key: KNOX-3452
>                 URL: https://issues.apache.org/jira/browse/KNOX-3452
>             Project: Apache Knox
>          Issue Type: Task
>            Reporter: Raghav Maheshwari
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Add comprehensive unit test coverage for 
> org.apache.knox.gateway.util.MimeTypes.
> The tests should cover MIME type creation, charset handling, invalid input, 
> charset fallback behavior, MIME parameter preservation, wildcard MIME types, 
> normalization, and default charset lookup.
> Test coverage:
> •Null MIME type creation
> •Valid MIME type creation
> •Custom charset insertion
> •UTF-8 charset insertion
> •Existing charset preservation
> •Quoted charset values
> •Case-insensitive charset parameter names
> •Preservation of additional MIME parameters
> •Wildcard MIME types
> •Malformed, empty, and whitespace-only MIME types
> •Charset lookup with explicit and fallback values
> •Charset lookup with null MIME types
> •Adding and replacing charset parameters
> •Preservation of parameters when setting charset
> •Default charset lookup for supported MIME types
> •Case and whitespace normalization
> •Unknown, empty, parameterized, and structured MIME types



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to