Skip to content

Commit

Permalink
[TEST] FixtureMonkey 를 사용하여 발생하는 버그 수정 #224
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin409 committed Sep 22, 2024
1 parent 195a578 commit a9c9c18
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ReportProcessorTest extends ServiceTest {

// given
CheerTalk cheerTalk = entityBuilder(CheerTalk.class)
.set("is_blocked", false)
.set("content", badWord).sample();

Report report = entityBuilder(Report.class)
Expand All @@ -36,7 +37,7 @@ public class ReportProcessorTest extends ServiceTest {
// then
assertAll(
() -> assertThat(report.getState()).isEqualTo(ReportState.VALID),
() -> assertThat(cheerTalk.isBlocked()).isEqualTo(true)
() -> assertThat(report.getCheerTalk().isBlocked()).isEqualTo(true)
);
}

Expand All @@ -46,6 +47,7 @@ public class ReportProcessorTest extends ServiceTest {

// given
CheerTalk cheerTalk = entityBuilder(CheerTalk.class)
.set("is_blocked", false)
.set("content", badWord).sample();

Report report = entityBuilder(Report.class)
Expand Down

0 comments on commit a9c9c18

Please sign in to comment.