Changed no-arg constructor to a form more suitable for unit testing.
This commit is contained in:
parent
cab961bfa6
commit
1573491fbe
|
@ -47,8 +47,8 @@ public class TestingAuthenticationToken extends AbstractAuthenticationToken {
|
||||||
this.authorities = authorities;
|
this.authorities = authorities;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TestingAuthenticationToken() {
|
protected TestingAuthenticationToken() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
|
|
@ -56,8 +56,8 @@ public class UsernamePasswordAuthenticationToken
|
||||||
this.authorities = authorities;
|
this.authorities = authorities;
|
||||||
}
|
}
|
||||||
|
|
||||||
private UsernamePasswordAuthenticationToken() {
|
protected UsernamePasswordAuthenticationToken() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
|
Loading…
Reference in New Issue