Skip to content

Commit

Permalink
Merge branch 'test/#176_belljun3395' into feat/#68_belljun3395
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Jul 8, 2024
2 parents 3ec5a11 + 7da4ea2 commit 06242f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import com.few.batch.BatchTestSpec
import com.few.email.service.article.SendArticleEmailService
import com.few.email.service.article.dto.SendArticleEmailArgs
import jooq.jooq_dsl.tables.ArticleIfo
import jooq.jooq_dsl.tables.ArticleMst
import jooq.jooq_dsl.tables.MappingWorkbookArticle
import jooq.jooq_dsl.tables.Member
import jooq.jooq_dsl.tables.Subscription
import org.jboss.logging.MDC
import org.jooq.DSLContext
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.BeforeEach
Expand Down Expand Up @@ -37,6 +37,7 @@ class WorkBookSubscriberWriterTest : BatchTestSpec() {
dslContext.deleteFrom(Subscription.SUBSCRIPTION).execute()
dslContext.deleteFrom(MappingWorkbookArticle.MAPPING_WORKBOOK_ARTICLE).execute()
dslContext.deleteFrom(ArticleIfo.ARTICLE_IFO).execute()
dslContext.deleteFrom(ArticleMst.ARTICLE_MST).execute()

// setup member
helper.setUpMembers(10)
Expand Down Expand Up @@ -90,7 +91,6 @@ class WorkBookSubscriberWriterTest : BatchTestSpec() {
failItem.content,
""
)
MDC.put("test", failArgs)
`when`(
sendArticleEmailService.send(failArgs)
).thenThrow(RuntimeException("send email error"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class WorkBookSubscriberWriterTestSetHelper(
writerLink = URL("http://localhost:8080"),
articleContent = articleDto.content,
problemLink = URL("https://www.fewletter.com/problem?articleId=${articleDto.articleId}"),
unsubscribeLink = URL("https://www.fewletter.com/unsbuscribe?user=member${it[Subscription.SUBSCRIPTION.MEMBER_ID]}@gmail.com&workbookId=$workbookId&articleId=${articleDto.articleId}")
unsubscribeLink = URL("https://www.fewletter.com/unsubscribe?user=member${it[Subscription.SUBSCRIPTION.MEMBER_ID]}@gmail.com&workbookId=$workbookId&articleId=${articleDto.articleId}")
)
)
items.add(dto)
Expand Down

0 comments on commit 06242f4

Please sign in to comment.