[BE] feat: Coupon에서 couponDesign, couponPolicy 엔티티 의존성 제거 #477
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
18 errors and 18 warnings
ManagerCafeCouponSettingFindAcceptanceTest.카페 사장은 쿠폰이 발급되었을 때 쿠폰 디자인 조회 가능하다:
backend/src/test/java/com/stampcrush/backend/acceptance/ManagerCafeCouponSettingFindAcceptanceTest.java#L39
java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "exceptionMessage" (class com.stampcrush.backend.api.manager.cafe.response.CafeCouponSettingFindResponse), not marked as ignorable (4 known properties: "backImageUrl", "frontImageUrl", "stampImageUrl", "coordinates"])
at [Source: (String)"{"exceptionMessage":"알 수 없는 에러가 발생했습니다. 잠시 후 다시 시도해 주세요."}"; line: 1, column: 59] (through reference chain: com.stampcrush.backend.api.manager.cafe.response.CafeCouponSettingFindResponse["exceptionMessage"])
|
VisitorCouponFindAcceptanceTest.카페당 하나의 쿠폰을 조회할 수 있다:
backend/src/test/java/com/stampcrush/backend/acceptance/VisitorCouponFindAcceptanceTest.java#L58
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (13 failures)
org.opentest4j.AssertionFailedError:
expected: 200
but was: 500
java.lang.AssertionError:
Expecting actual not to be null
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because the return value of "io.restassured.path.json.JsonPath.getList(String)" is null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
org.opentest4j.AssertionFailedError:
expected: "깃짱카페"
but was: null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
org.opentest4j.AssertionFailedError:
expected: "ACCUMULATING"
but was: null
java.lang.AssertionError:
Expecting actual not to be null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
org.opentest4j.AssertionFailedError:
expected: "깃짱카페"
but was: null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
org.opentest4j.AssertionFailedError:
expected: "ACCUMULATING"
but was: null
java.lang.AssertionError:
Expecting actual not to be null
|
VisitorCouponFindAcceptanceTest.여러 개의 쿠폰이 있는 경우 ACCUMULATING인 쿠폰만 조회된다:
backend/src/test/java/com/stampcrush/backend/acceptance/VisitorCouponFindAcceptanceTest.java#L99
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (5 failures)
org.opentest4j.AssertionFailedError:
expected: 200
but was: 500
java.lang.AssertionError:
Expecting actual not to be null
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because the return value of "io.restassured.path.json.JsonPath.getList(String)" is null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "io.restassured.internal.common.path.ObjectConverter.convertObjectTo(Object, java.lang.Class)" is null
|
VisitorCouponFindApiDocsControllerTest.고객의 쿠폰 조회 요청 시 인증이 되면 200 상태코드와 응답을 반환한다:
backend/src/test/java/com/stampcrush/backend/api/docs/visitor/coupon/VisitorCouponFindApiDocsControllerTest.java#L38
java.lang.NullPointerException: Cannot invoke "com.stampcrush.backend.entity.coupon.CouponDesign.getFrontImageUrl()" because the return value of "com.stampcrush.backend.entity.coupon.Coupon.getCouponDesign()" is null
|
VisitorCouponFindApiControllerTest.고객의 쿠폰 조회 요청 시 인증이 되면 200 상태코드와 응답을 반환한다:
backend/src/test/java/com/stampcrush/backend/api/visitor/coupon/VisitorCouponFindApiControllerTest.java#L25
java.lang.NullPointerException: Cannot invoke "com.stampcrush.backend.entity.coupon.CouponDesign.getFrontImageUrl()" because the return value of "com.stampcrush.backend.entity.coupon.Coupon.getCouponDesign()" is null
|
ManageCouponCommandServiceTest.적립중인 쿠폰이 없으면 새로운 쿠폰만 발급한다:
backend/src/test/java/com/stampcrush/backend/application/manager/coupon/ManageCouponCommandServiceTest.java#L149
Wanted but not invoked:
couponDesignRepository.save(<any>);
-> at com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest.적립중인_쿠폰이_없으면_새로운_쿠폰만_발급한다(ManageCouponCommandServiceTest.java:149)
Actually, there were zero interactions with this mock.
|
ManageCouponCommandServiceTest.적립중인 쿠폰이 있으면 새로운 쿠폰을 발급하고 기존 쿠폰은 만료된다:
backend/src/test/java/com/stampcrush/backend/application/manager/coupon/ManageCouponCommandServiceTest.java#L123
Wanted but not invoked:
couponDesignRepository.save(<any>);
-> at com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest.적립중인_쿠폰이_있으면_새로운_쿠폰을_발급하고_기존_쿠폰은_만료된다(ManageCouponCommandServiceTest.java:123)
Actually, there were zero interactions with this mock.
|
ManagerCouponFindServiceTest.쿠폰 정책이 쿠폰의 카페의 정책과 내용이 같지 않으면 예전 정책의 쿠폰이다:
backend/src/test/java/com/stampcrush/backend/application/manager/coupon/ManagerCouponFindServiceTest.java#L179
java.lang.AssertionError:
Expecting actual:
[com.stampcrush.backend.application.manager.coupon.dto.CustomerAccumulatingCouponFindResultDto@3a70f51d]
to contain exactly in any order:
[com.stampcrush.backend.application.manager.coupon.dto.CustomerAccumulatingCouponFindResultDto@63f629c1]
elements not found:
[com.stampcrush.backend.application.manager.coupon.dto.CustomerAccumulatingCouponFindResultDto@63f629c1]
and elements not expected:
[com.stampcrush.backend.application.manager.coupon.dto.CustomerAccumulatingCouponFindResultDto@3a70f51d]
when comparing values using recursive field/property by field/property comparator on all fields/properties using the following configuration:
- the following fields were ignored in the comparison: id, expireDate
- no overridden equals methods were used in the comparison (except for java types)
- these types were compared with the following comparators:
- java.lang.Double -> DoubleComparator[precision=1.0E-15]
- java.lang.Float -> FloatComparator[precision=1.0E-6]
- java.nio.file.Path -> lexicographic comparator (Path natural order)
- actual and expected objects and their fields were compared field by field recursively even if they were not of the same type, this allows for example to compare a Person to a PersonDto (call strictTypeChecking(true) to change that behavior).
- the introspection strategy used was: DefaultRecursiveComparisonIntrospectionStrategy
|
VisitorCouponFindServiceTest.하나의 카페당 하나의 쿠폰을 조회할 수 있다:
backend/src/test/java/com/stampcrush/backend/application/visitor/coupon/VisitorCouponFindServiceTest.java#L86
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
java.lang.NullPointerException: Cannot invoke "com.stampcrush.backend.entity.coupon.CouponDesign.getFrontImageUrl()" because the return value of "com.stampcrush.backend.entity.coupon.Coupon.getCouponDesign()" is null
java.lang.NullPointerException: Cannot invoke "com.stampcrush.backend.entity.coupon.CouponDesign.getFrontImageUrl()" because the return value of "com.stampcrush.backend.entity.coupon.Coupon.getCouponDesign()" is null
|
CouponTest.스탬프를 적립하고 최대 스탬프 개수와 같아지면 쿠폰 상태가 REWARDED가 된다:
backend/src/test/java/com/stampcrush/backend/entity/coupon/CouponTest.java#L125
java.lang.AssertionError:
Expecting actual:
ACCUMULATING
and:
REWARDED
to refer to the same object
|
CouponTest.스탬프 적립 시 찍힌 스탬프 합이 보상 개수보다 적으면 true다:
backend/src/test/java/com/stampcrush/backend/entity/coupon/CouponTest.java#L203
org.opentest4j.AssertionFailedError:
Expecting value to be true but was false
|
CouponTest.스탬프 적립 시 찍힌 스탬프 합이 보상 개수와 같으면 true다:
backend/src/test/java/com/stampcrush/backend/entity/coupon/CouponTest.java#L228
org.opentest4j.AssertionFailedError:
Expecting value to be true but was false
|
CouponTest.보상까지 남은 스탬프 개수를 계산한다:
backend/src/test/java/com/stampcrush/backend/entity/coupon/CouponTest.java#L178
org.opentest4j.AssertionFailedError:
expected: 7
but was: 2
|
CouponTest.스탬프를 적립하고 최대 스탬프 개수와 같아지면 쿠폰 상태가 REWARDED가 된다1:
backend/src/test/java/com/stampcrush/backend/entity/coupon/CouponTest.java#L151
java.lang.AssertionError:
Expecting actual:
ACCUMULATING
and:
REWARDED
to refer to the same object
|
CouponRepositoryTest2.쿠폰이 참조하는 쿠폰디자인을 찾을 수 있다:
backend/src/test/java/com/stampcrush/backend/repository/coupon/CouponRepositoryTest2.java#L151
org.opentest4j.MultipleFailuresError: Multiple Failures (1 failure)
java.lang.AssertionError:
Expecting actual not to be null
|
CouponRepositoryTest2.쿠폰이 참조하는 카페정책을 찾을 수 있다:
backend/src/test/java/com/stampcrush/backend/repository/coupon/CouponRepositoryTest2.java#L130
org.opentest4j.MultipleFailuresError: Multiple Failures (1 failure)
org.opentest4j.AssertionFailedError:
expected: null
but was: com.stampcrush.backend.entity.cafe.CafePolicy@35873a1
|
CouponRepositoryTest2.쿠폰 디자인에 읽기 전용인 좌표를 조회한다:
backend/src/test/java/com/stampcrush/backend/repository/coupon/CouponRepositoryTest2.java#L81
java.lang.NullPointerException: Cannot invoke "com.stampcrush.backend.entity.coupon.CouponDesign.getCouponStampCoordinates()" because the return value of "com.stampcrush.backend.entity.coupon.Coupon.getCouponDesign()" is null
|
build
Process completed with exit code 1.
|
카페 사장은 쿠폰이 발급되었을 때 쿠폰 디자인 조회 가능하다 (com.stampcrush.backend.acceptance.ManagerCafeCouponSettingFindAcceptanceTest) failed:
com.stampcrush.backend.acceptance.ManagerCafeCouponSettingFindAcceptanceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.acceptance.ManagerCafeCouponSettingFindAcceptanceTest.xml
|
카페당 하나의 쿠폰을 조회할 수 있다 (com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest) failed:
com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest.xml
|
여러 개의 쿠폰이 있는 경우 ACCUMULATING인 쿠폰만 조회된다 (com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest) failed:
com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.acceptance.VisitorCouponFindAcceptanceTest.xml
|
고객의 쿠폰 조회 요청 시 인증이 되면 200 상태코드와 응답을 반환한다 (com.stampcrush.backend.api.docs.visitor.coupon.VisitorCouponFindApiDocsControllerTest) failed:
com.stampcrush.backend.api.docs.visitor.coupon.VisitorCouponFindApiDocsControllerTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.api.docs.visitor.coupon.VisitorCouponFindApiDocsControllerTest.xml
|
적립중인 쿠폰이 없으면 새로운 쿠폰만 발급한다 (com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest) failed:
com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest.xml
|
적립중인 쿠폰이 있으면 새로운 쿠폰을 발급하고 기존 쿠폰은 만료된다 (com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest) failed:
com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.application.manager.coupon.ManageCouponCommandServiceTest.xml
|
쿠폰이 참조하는 쿠폰디자인을 찾을 수 있다 (com.stampcrush.backend.repository.coupon.CouponRepositoryTest2) failed:
com.stampcrush.backend.repository.coupon.CouponRepositoryTest2#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.repository.coupon.CouponRepositoryTest2.xml
|
쿠폰이 참조하는 카페정책을 찾을 수 있다 (com.stampcrush.backend.repository.coupon.CouponRepositoryTest2) failed:
com.stampcrush.backend.repository.coupon.CouponRepositoryTest2#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.repository.coupon.CouponRepositoryTest2.xml
|
쿠폰 디자인에 읽기 전용인 좌표를 조회한다 (com.stampcrush.backend.repository.coupon.CouponRepositoryTest2) failed:
com.stampcrush.backend.repository.coupon.CouponRepositoryTest2#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.repository.coupon.CouponRepositoryTest2.xml
|
쿠폰 정책이 쿠폰의 카페의 정책과 내용이 같지 않으면 예전 정책의 쿠폰이다 (com.stampcrush.backend.application.manager.coupon.ManagerCouponFindServiceTest) failed:
com.stampcrush.backend.application.manager.coupon.ManagerCouponFindServiceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.application.manager.coupon.ManagerCouponFindServiceTest.xml
|
스탬프를 적립하고 최대 스탬프 개수와 같아지면 쿠폰 상태가 REWARDED가 된다 (com.stampcrush.backend.entity.coupon.CouponTest) failed:
com.stampcrush.backend.entity.coupon.CouponTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.entity.coupon.CouponTest.xml
|
스탬프 적립 시 찍힌 스탬프 합이 보상 개수보다 적으면 true다 (com.stampcrush.backend.entity.coupon.CouponTest) failed:
com.stampcrush.backend.entity.coupon.CouponTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.entity.coupon.CouponTest.xml
|
스탬프 적립 시 찍힌 스탬프 합이 보상 개수와 같으면 true다 (com.stampcrush.backend.entity.coupon.CouponTest) failed:
com.stampcrush.backend.entity.coupon.CouponTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.entity.coupon.CouponTest.xml
|
보상까지 남은 스탬프 개수를 계산한다 (com.stampcrush.backend.entity.coupon.CouponTest) failed:
com.stampcrush.backend.entity.coupon.CouponTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.entity.coupon.CouponTest.xml
|
스탬프를 적립하고 최대 스탬프 개수와 같아지면 쿠폰 상태가 REWARDED가 된다1 (com.stampcrush.backend.entity.coupon.CouponTest) failed:
com.stampcrush.backend.entity.coupon.CouponTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.entity.coupon.CouponTest.xml
|
고객의 쿠폰 조회 요청 시 인증이 되면 200 상태코드와 응답을 반환한다 (com.stampcrush.backend.api.visitor.coupon.VisitorCouponFindApiControllerTest) failed:
com.stampcrush.backend.api.visitor.coupon.VisitorCouponFindApiControllerTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.api.visitor.coupon.VisitorCouponFindApiControllerTest.xml
|
하나의 카페당 하나의 쿠폰을 조회할 수 있다 (com.stampcrush.backend.application.visitor.coupon.VisitorCouponFindServiceTest) failed:
com.stampcrush.backend.application.visitor.coupon.VisitorCouponFindServiceTest#L0
backend/build/test-results/test/TEST-com.stampcrush.backend.application.visitor.coupon.VisitorCouponFindServiceTest.xml
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|