Skip to content

Commit

Permalink
Test | #87 | @YongsHub | 테스트 코드 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
YongsHub committed Jun 15, 2024
1 parent 120f8fc commit f183cef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private BusinessInformation getBusinessInformationFixtureWithCakeShop() {
private User getUserFixture() {
return getReflectionMonkey().giveMeBuilder(User.class)
.set("id", Arbitraries.longs().greaterOrEqual(10))
.set("email", Arbitraries.strings().withCharRange('a', 'z').ofMaxLength(50))
.sample();
}

Expand All @@ -64,12 +65,13 @@ private CertificationParam getCertificationParamFixtureWithUser(User user) {
BusinessInformation businessInformation = getBusinessInformationFixtureWithCakeShop();
User user = getUserFixture();
CertificationParam param = getCertificationParamFixtureWithUser(user);
String shopName = businessInformation.getCakeShop().getShopName();

//when
CertificationEvent certificationEvent = businessInformation.getRequestCertificationMessage(param);

//then
assertThat(certificationEvent.shopName()).isNotNull();
assertThat(certificationEvent.shopName()).isEqualTo(shopName);
}

@Test
Expand Down

0 comments on commit f183cef

Please sign in to comment.