Skip to content

Commit

Permalink
fix: Fix group service test
Browse files Browse the repository at this point in the history
  • Loading branch information
210-reverof committed Aug 29, 2024
1 parent 6aa0dd6 commit 82e57c4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.mashup.pic.domain.group

import com.mashup.pic.common.exception.PicException
import com.mashup.pic.domain.IntegrationTestSupport
import com.mashup.pic.domain.user.LoginProvider
import com.mashup.pic.domain.user.User
import com.mashup.pic.domain.user.UserRepository
import org.assertj.core.api.Assertions.assertThat
Expand Down Expand Up @@ -84,11 +85,12 @@ class GroupServiceTest : IntegrationTestSupport {
}

private fun createSampleUser(
oAuthId: Long = 1L,
oAuthId: String = "sampleid",
provider: LoginProvider = LoginProvider.KAKAO,
nickname: String = "User",
profileImage: String = "http://www.sample.com/profile-image.png"
): User {
val user = User(oAuthId, nickname = nickname, profileImage = profileImage)
val user = User(oAuthId = oAuthId, provider = provider, nickname = nickname, profileImage = profileImage)
return userRepository.save(user)
}

Expand Down

0 comments on commit 82e57c4

Please sign in to comment.