You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2023/06/30 19:02:00 UTC

[jira] [Commented] (NIFI-11767) Refactor Groovy tests in nifi-web-error and nifi-web-security to Java (and JUnit 5)

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

Daniel Stieglitz commented on NIFI-11767:
-----------------------------------------

[~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)