File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
main/java/org/cloudfoundry/uaa/users
test/java/org/cloudfoundry/uaa/users Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import com .fasterxml .jackson .annotation .JsonIgnore ;
20
20
import com .fasterxml .jackson .annotation .JsonProperty ;
21
+ import org .cloudfoundry .Nullable ;
21
22
import org .cloudfoundry .uaa .IdentityZoned ;
22
23
import org .immutables .value .Value ;
23
24
@@ -31,6 +32,7 @@ abstract class _ChangeUserPasswordRequest implements IdentityZoned {
31
32
* The user's existing password
32
33
*/
33
34
@ JsonProperty ("oldPassword" )
35
+ @ Nullable
34
36
abstract String getOldPassword ();
35
37
36
38
/**
Original file line number Diff line number Diff line change 20
20
21
21
public final class ChangeUserPasswordRequestTest {
22
22
23
- @ Test (expected = IllegalStateException .class )
24
- public void noOldPassword () {
25
- ChangeUserPasswordRequest .builder ()
26
- .password ("test-password" )
27
- .userId ("test-user-id" )
28
- .build ();
29
- }
30
-
31
23
@ Test (expected = IllegalStateException .class )
32
24
public void noPassword () {
33
25
ChangeUserPasswordRequest .builder ()
34
- .oldPassword ("test-old-password" )
35
26
.userId ("test-user-id" )
36
27
.build ();
37
28
}
38
29
39
30
@ Test (expected = IllegalStateException .class )
40
31
public void noUserId () {
41
32
ChangeUserPasswordRequest .builder ()
42
- .oldPassword ("test-old-password" )
43
33
.password ("test-password" )
44
34
.build ();
45
35
}
46
36
47
37
@ Test
48
38
public void valid () {
49
39
ChangeUserPasswordRequest .builder ()
50
- .oldPassword ("test-old-password" )
51
40
.password ("test-password" )
52
41
.userId ("test-user-id" )
53
42
.build ();
You can’t perform that action at this time.
0 commit comments