ilgrosso commented on code in PR #1606:
URL: https://github.com/apache/syncope/pull/1606#discussion_r4521986042


##########
core/spring/src/test/java/org/apache/syncope/core/spring/security/PasswordGeneratorTest.java:
##########
@@ -149,4 +151,19 @@ public void issueSYNCOPE678() {
         password = passwordGenerator.generate(List.of(new 
TestPasswordPolicy(passwordRule)));
         assertNotNull(password);
     }
+
+    
+    private static DefaultPasswordRuleConf configRule(final boolean 
usernameAllowed) {
+        DefaultPasswordRuleConf conf = new DefaultPasswordRuleConf();
+        conf.setUsernameAllowed(usernameAllowed);
+        return conf;
+    }
+
+    @Test
+    void allForbid() {
+        List<DefaultPasswordRuleConf> rules = new ArrayList();

Review Comment:
   it should be `new ArrayList<>()`



-- 
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