diff --git a/config/src/test/groovy/org/springframework/security/config/annotation/issue50/domain/User.java b/config/src/test/java/org/springframework/security/config/annotation/issue50/domain/User.java similarity index 84% rename from config/src/test/groovy/org/springframework/security/config/annotation/issue50/domain/User.java rename to config/src/test/java/org/springframework/security/config/annotation/issue50/domain/User.java index 97a4c580a4..4e3ef43e9c 100644 --- a/config/src/test/groovy/org/springframework/security/config/annotation/issue50/domain/User.java +++ b/config/src/test/java/org/springframework/security/config/annotation/issue50/domain/User.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,4 +59,10 @@ public class User { this.password = password; } -} \ No newline at end of file + public static User withUsernameAndPassword(String username, String password) { + User user = new User(); + user.setUsername(username); + user.setPassword(password); + return user; + } +}