Skip to content

Commit

Permalink
[refactor][#53] user domain 수정으로 인한 변경사항
Browse files Browse the repository at this point in the history
  • Loading branch information
ProtoSeo committed Jul 20, 2022
1 parent 45d9f8c commit 0f6b43a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/test/java/kr/startoff/backend/payload/PayloadFixture.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static User getUser(PasswordEncoder encoder) {
.email(EMAIL)
.nickname(NICKNAME)
.password(encoder.encode(PASSWORD))
.provider(AuthProvider.local)
.provider(AuthProvider.LOCAL)
.build();
}

Expand All @@ -234,7 +234,7 @@ public static User getUser() {
.email(EMAIL)
.nickname(NICKNAME)
.password(PASSWORD)
.provider(AuthProvider.local)
.provider(AuthProvider.LOCAL)
.build();
user.setId(USER_ID);
return user;
Expand All @@ -244,16 +244,16 @@ public static User getUserForProfile() {
User user = User.builder()
.email(EMAIL)
.nickname(NICKNAME)
.password(PASSWORD).provider(AuthProvider.local)
.password(PASSWORD).provider(AuthProvider.LOCAL)
.build();
user.setUserSkills(List.of(getSkillTag()));
user.setProjects(List.of(getProject()));
user.setNickname(NICKNAME);
user.setIntroduce(INTRODUCE);
user.setGithubUrl(NEW_GITHUB_URL);
user.setBlogUrl(NEW_BLOG_URL);
user.setImageUrl(IMAGE_URL);
user.setBaekjoonId(BAEKJOON_ID);
user.updateIntroduce(INTRODUCE);
user.updateGithubUrl(NEW_GITHUB_URL);
user.updateBlogUrl(NEW_BLOG_URL);
user.updateImageUrl(IMAGE_URL);
user.updateBaekjoonId(BAEKJOON_ID);
return user;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class UserRepositoryTest {
.email(EMAIL)
.nickname(NICKNAME)
.password(PASSWORD)
.provider(AuthProvider.local)
.provider(AuthProvider.LOCAL)
.build();

@Autowired
Expand All @@ -50,7 +50,7 @@ void findByEmailTest() throws Exception {
assertEquals(EMAIL, foundUser.get().getEmail());
assertEquals(PASSWORD, foundUser.get().getPassword());
assertEquals(NICKNAME, foundUser.get().getNickname());
assertEquals(AuthProvider.local, foundUser.get().getProvider());
assertEquals(AuthProvider.LOCAL, foundUser.get().getProvider());
}

@Test
Expand Down

0 comments on commit 0f6b43a

Please sign in to comment.