markap14 commented on code in PR #11209:
URL: https://github.com/apache/nifi/pull/11209#discussion_r3191143653


##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/components/connector/TestStandardConnectorRepository.java:
##########
@@ -1170,6 +1171,75 @@ public void 
testSyncConnectorProviderAllowWithWorkingConfig() throws Exception {
         verify(connector).inheritConfiguration(any(), any(), any());
     }
 
+    // --- findProviderIdByName ---
+
+    @Test
+    public void testFindProviderIdByNameResolvesUniqueMatch() {
+        final ParameterProviderNode snowflake = 
mockParameterProvider("Snowflake Provider", "id-1");
+        final ParameterProviderNode vault = mockParameterProvider("Vault 
Provider", "id-2");
+        final FlowManager flowManager = mock(FlowManager.class);
+        
when(flowManager.getAllParameterProviders()).thenReturn(java.util.Set.of(snowflake,
 vault));

Review Comment:
   Test has a lot of inlined `java.util.Set` - this class should be imported 
instead of referenced by fully qualified name.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to