SecurityMockServerConfigurers checkstyle
This commit is contained in:
parent
8527daa22a
commit
3abec60188
|
@ -130,7 +130,7 @@ public class SecurityMockServerConfigurers {
|
||||||
private final User.UserBuilder userBuilder;
|
private final User.UserBuilder userBuilder;
|
||||||
|
|
||||||
private UserExchangeMutator(String username) {
|
private UserExchangeMutator(String username) {
|
||||||
userBuilder = User.withUsername(username);
|
this.userBuilder = User.withUsername(username);
|
||||||
password("password");
|
password("password");
|
||||||
roles("USER");
|
roles("USER");
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ public class SecurityMockServerConfigurers {
|
||||||
* @return the UserExchangeMutator
|
* @return the UserExchangeMutator
|
||||||
*/
|
*/
|
||||||
public UserExchangeMutator password(String password) {
|
public UserExchangeMutator password(String password) {
|
||||||
userBuilder.password(password);
|
this.userBuilder.password(password);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ public class SecurityMockServerConfigurers {
|
||||||
* @return the UserExchangeMutator
|
* @return the UserExchangeMutator
|
||||||
*/
|
*/
|
||||||
public UserExchangeMutator roles(String... roles) {
|
public UserExchangeMutator roles(String... roles) {
|
||||||
userBuilder.roles(roles);
|
this.userBuilder.roles(roles);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ public class SecurityMockServerConfigurers {
|
||||||
* @return the UserExchangeMutator
|
* @return the UserExchangeMutator
|
||||||
*/
|
*/
|
||||||
public UserExchangeMutator authorities(GrantedAuthority... authorities) {
|
public UserExchangeMutator authorities(GrantedAuthority... authorities) {
|
||||||
userBuilder.authorities(authorities);
|
this.userBuilder.authorities(authorities);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ public class SecurityMockServerConfigurers {
|
||||||
* @return the UserExchangeMutator
|
* @return the UserExchangeMutator
|
||||||
*/
|
*/
|
||||||
public UserExchangeMutator authorities(Collection<? extends GrantedAuthority> authorities) {
|
public UserExchangeMutator authorities(Collection<? extends GrantedAuthority> authorities) {
|
||||||
userBuilder.authorities(authorities);
|
this.userBuilder.authorities(authorities);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,27 +185,27 @@ public class SecurityMockServerConfigurers {
|
||||||
* @return the UserExchangeMutator
|
* @return the UserExchangeMutator
|
||||||
*/
|
*/
|
||||||
public UserExchangeMutator authorities(String... authorities) {
|
public UserExchangeMutator authorities(String... authorities) {
|
||||||
userBuilder.authorities(authorities);
|
this.userBuilder.authorities(authorities);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserExchangeMutator accountExpired(boolean accountExpired) {
|
public UserExchangeMutator accountExpired(boolean accountExpired) {
|
||||||
userBuilder.accountExpired(accountExpired);
|
this.userBuilder.accountExpired(accountExpired);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserExchangeMutator accountLocked(boolean accountLocked) {
|
public UserExchangeMutator accountLocked(boolean accountLocked) {
|
||||||
userBuilder.accountLocked(accountLocked);
|
this.userBuilder.accountLocked(accountLocked);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserExchangeMutator credentialsExpired(boolean credentialsExpired) {
|
public UserExchangeMutator credentialsExpired(boolean credentialsExpired) {
|
||||||
userBuilder.credentialsExpired(credentialsExpired);
|
this.userBuilder.credentialsExpired(credentialsExpired);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserExchangeMutator disabled(boolean disabled) {
|
public UserExchangeMutator disabled(boolean disabled) {
|
||||||
userBuilder.disabled(disabled);
|
this.userBuilder.disabled(disabled);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ public class SecurityMockServerConfigurers {
|
||||||
}
|
}
|
||||||
|
|
||||||
private <T extends WebTestClientConfigurer & MockServerConfigurer> T configurer() {
|
private <T extends WebTestClientConfigurer & MockServerConfigurer> T configurer() {
|
||||||
return mockUser(userBuilder.build());
|
return mockUser(this.userBuilder.build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue