From 1217547ebda0139126489af34d3ee34de19f1b96 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 6 Feb 2018 11:51:38 -0600 Subject: [PATCH] User groovy->java Issue: gh-4939 --- .../config/annotation/issue50/domain/User.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename config/src/test/{groovy => java}/org/springframework/security/config/annotation/issue50/domain/User.java (84%) 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; + } +}