Skip to content

Commit

Permalink
PET-303 test : 생성자 기반에서 Reflection 기반 생성으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tlarbals824 committed Feb 12, 2024
1 parent 88b3986 commit 9a3d9e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void handleWithExistEmail() {
void handleWithNotMatchingProvider() {
// given
final User user = FixtureMonkeyUtils.getConstructBasedFixtureMonkey().giveMeOne(User.class);
final OAuthSuccessEvent oAuthSuccessEvent = FixtureMonkeyUtils.getConstructBasedFixtureMonkey()
final OAuthSuccessEvent oAuthSuccessEvent = FixtureMonkeyUtils.getReflectionbasedFixtureMonkey()
.giveMeBuilder(OAuthSuccessEvent.class)
.setPostCondition("provider", Provider.class, user::isNotMatchingProvider)
.sample();
Expand All @@ -104,7 +104,7 @@ void handleWithNotMatchingProvider() {
void handleWithExistUser() {
// given
final User user = FixtureMonkeyUtils.getConstructBasedFixtureMonkey().giveMeOne(User.class);
final OAuthSuccessEvent oAuthSuccessEvent = FixtureMonkeyUtils.getConstructBasedFixtureMonkey()
final OAuthSuccessEvent oAuthSuccessEvent = FixtureMonkeyUtils.getReflectionbasedFixtureMonkey()
.giveMeBuilder(OAuthSuccessEvent.class)
.setPostCondition("provider", Provider.class, user::isMatchingProvider)
.sample();
Expand Down

0 comments on commit 9a3d9e0

Please sign in to comment.