@Test public void testMultipleMappings() { Properties properties = new Properties(); properties.setProperty("nifi.security.identity.mapping.pattern.1", "pattern1"); properties.setProperty("nifi.security.identity.mapping.value.1", "value1"); properties.setProperty("nifi.security.identity.mapping.pattern.2", "pattern2"); properties.setProperty("nifi.security.identity.mapping.value.2", "value2"); properties.setProperty("nifi.security.identity.mapping.pattern.3", "pattern3"); properties.setProperty("nifi.security.identity.mapping.value.3", "value3"); final NiFiProperties nifiProperties = getNiFiProperties(properties); TestableNiFiAuthenticationProvider provider = new TestableNiFiAuthenticationProvider(nifiProperties); List<IdentityMapping> mappings = provider.getMappings(); assertEquals(3, mappings.size()); }
public List<IdentityMapping> getMappings() { return mappings; }
NiFiAuthenticationProvider implements AuthenticationProvider { public List<IdentityMapping> getMappings() { return mappings; } }
NiFiAuthenticationProvider implements AuthenticationProvider { public List<IdentityMapping> getMappings() { return mappings; } NiFiAuthenticationProvider(final NiFiProperties properties); }
NiFiAuthenticationProvider implements AuthenticationProvider { public List<IdentityMapping> getMappings() { return mappings; } NiFiAuthenticationProvider(final NiFiProperties properties); List<IdentityMapping> getMappings(); }
NiFiAuthenticationProvider implements AuthenticationProvider { public List<IdentityMapping> getMappings() { return mappings; } NiFiAuthenticationProvider(final NiFiProperties properties); List<IdentityMapping> getMappings();  }