User groovy->java

Issue: gh-4939
This commit is contained in:
Rob Winch 2018-02-06 11:51:38 -06:00
parent 12bd506ee7
commit 1217547ebd

View File

@ -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;
}
}
public static User withUsernameAndPassword(String username, String password) {
User user = new User();
user.setUsername(username);
user.setPassword(password);
return user;
}
}