Skip to content

Commit

Permalink
modified name
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya732 committed Jan 24, 2025
1 parent 5c647e9 commit 7b85db0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ScimTokenRequest {
@JsonProperty("scopes")
private List<String> scopes;
@JsonProperty("token_lifetime")
private Integer token_lifetime;
private Integer tokenLifetime;

/**
* Getter for the scopes.
Expand All @@ -34,15 +34,15 @@ public void setScopes(List<String> scopes) {
* Getter for the token lifetime.
* @return the token lifetime.
*/
public Integer getToken_lifetime() {
return token_lifetime;
public Integer getTokenLifetime() {
return tokenLifetime;
}

/**
* Setter for the token lifetime.
* @param token_lifetime the token lifetime to set.
* @param tokenLifetime the token lifetime to set.
*/
public void setToken_lifetime(Integer token_lifetime) {
this.token_lifetime = token_lifetime;
public void setTokenLifetime(Integer tokenLifetime) {
this.tokenLifetime = tokenLifetime;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ private ScimTokenRequest getScimToken() {
List<String> scopes = new ArrayList<>();
scopes.add("get:users");
request.setScopes(scopes);
request.setToken_lifetime(1000);
request.setTokenLifetime(1000);
return request;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ScimTokenRequestTest extends JsonTest<ScimTokenRequest> {
@Test
public void serialize() throws Exception {
ScimTokenRequest request = new ScimTokenRequest();
request.setToken_lifetime(1000);
request.setTokenLifetime(1000);
List<String> scopes = new ArrayList<>();
scopes.add("get:users");
request.setScopes(scopes);
Expand All @@ -38,7 +38,7 @@ public void deserialize() throws Exception {

assertThat(deserialized, is(notNullValue()));

assertThat(deserialized.getToken_lifetime(), is(1000));
assertThat(deserialized.getTokenLifetime(), is(1000));
assertThat(deserialized.getScopes().get(0), is("get:users"));
}
}

0 comments on commit 7b85db0

Please sign in to comment.