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

Daniel Stieglitz edited comment on NIFI-11767 at 6/30/23 7:02 PM:
------------------------------------------------------------------

[~exceptionfactory] I am having an issue when refactoring 
{code:java}
ProxiedEntitiesUtilsTest.groovy
{code}
In test
{code:java}
 testSanitizeDnShouldHandleFuzzing
{code}
on line 106 

{code:java}
 String sanitizedName = ProxiedEntitiesUtils.sanitizeDn(name)
{code}

I am getting a compile error when converting this to Java since 
ProxiedEntitiesUtils.sanitizeDn is a private static method. I believe using 
reflection could solve this but I am not sure if that is the desired solution. 
Please advise.




was (Author: JIRAUSER294662):
[~exceptionfactory] I am having an issue when refactoring 
{code:java}
ProxiedEntitiesUtilsTest.groovy
{code}
In test
{code:java}
 testSanitizeDnShouldHandleFuzzing
{code}
on line 106 

{code:java}
 String sanitizedName = ProxiedEntitiesUtils.sanitizeDn(name)
{code}

I am getting a compile error when converting this to Java is a private static 
method. I believe using reflection could solve this but I am not sure if that 
is the desired solution. Please advise.



> Refactor Groovy tests in nifi-web-error and nifi-web-security to Java (and 
> JUnit 5)
> -----------------------------------------------------------------------------------
>
>                 Key: NIFI-11767
>                 URL: https://issues.apache.org/jira/browse/NIFI-11767
>             Project: Apache NiFi
>          Issue Type: Sub-task
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> The following tests are to be refactored
> # 
> /nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-error/src/test/groovy/org/apache/nifi/web/filter/CatchAllFilterTest.groovy
> # 
> ./nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/groovy/org/apache/nifi/web/security/ProxiedEntitiesUtilsTest.groovy
> # 
> ./nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/groovy/org/apache/nifi/web/security/requests/ContentLengthFilterTest.groovy



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

Reply via email to