Skip to content
Snippets Groups Projects
Commit 33825bed authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2652 rename StubUserResource -> UserResourceStub

parent 2119dd2a
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ import org.keycloak.representations.idm.UserSessionRepresentation; ...@@ -20,10 +20,10 @@ import org.keycloak.representations.idm.UserSessionRepresentation;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
class StubUserResource implements UserResource { class UserResourceStub implements UserResource {
private UserRepresentation userRepresentation = UserRepresentationTestFactory.create(); private UserRepresentation userRepresentation = UserRepresentationTestFactory.create();
public StubUserResource(Map<String, List<String>> attributes) { public UserResourceStub(Map<String, List<String>> attributes) {
userRepresentation = UserRepresentationTestFactory.createWithAttributes(attributes); userRepresentation = UserRepresentationTestFactory.createWithAttributes(attributes);
} }
......
...@@ -9,10 +9,10 @@ public class UserResourceTestFactory { ...@@ -9,10 +9,10 @@ public class UserResourceTestFactory {
public static UserResource create() { public static UserResource create() {
return new StubUserResource(); return new UserResourceStub();
} }
public static UserResource createWithAttributes(Map<String, List<String>> attributes) { public static UserResource createWithAttributes(Map<String, List<String>> attributes) {
return new StubUserResource(attributes); return new UserResourceStub(attributes);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment