[ https://issues.apache.org/jira/browse/NIFI-11873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17751216#comment-17751216 ]
Daniel Stieglitz commented on NIFI-11873: ----------------------------------------- [~exceptionfactory] I am having an issue refactoring {code:java} private static Map<String, Double> determineExpectedPercents(Map<String, Integer> nodes, TransferDirection direction = TransferDirection.SEND) { long totalFFC = nodes.values().sum() as long nodes.collectEntries { name, ffc -> [name, PeerSelector.calculateNormalizedWeight(direction, totalFFC, ffc, nodes.size())] } } {code} as {code:java} PeerSelector.calculateNormalizedWeight {code} is a private method and in Java {code:java} PeerSelectorTest {code} cannot access this method. > Refactor PeerSelectorTest from Groovy to Java > --------------------------------------------- > > Key: NIFI-11873 > URL: https://issues.apache.org/jira/browse/NIFI-11873 > Project: Apache NiFi > Issue Type: Sub-task > Reporter: Daniel Stieglitz > Assignee: Daniel Stieglitz > Priority: Minor > > Location of file to refactor is in > /nifi-commons/nifi-site-to-site-client/src/test/groovy/org/apache/nifi/remote/client/PeerSelectorTest.groovy -- This message was sent by Atlassian Jira (v8.20.10#820010)