| | |
| | | } |
| | | |
| | | @Test |
| | | void carWashListHidesMiniProgramTagAndShowsNormalConfiguredDiscount() throws Exception { |
| | | Method method = PortalService.class.getDeclaredMethod("carWashListDiscountText", String.class, Map.class); |
| | | method.setAccessible(true); |
| | | Map<String, Object> right = Map.of( |
| | | "enabled", true, |
| | | "storeConsume", true, |
| | | "consumeEnabled", true, |
| | | "discount", "8.50"); |
| | | |
| | | assertThat(method.invoke(service, "miniProgram", right)).isEqualTo(""); |
| | | assertThat(method.invoke(service, "normal", right)).isEqualTo("8.5折"); |
| | | } |
| | | |
| | | @Test |
| | | @SuppressWarnings("unchecked") |
| | | void recommendedMerchantTagsFollowCategoryListRules() throws Exception { |
| | | Method method = PortalService.class.getDeclaredMethod( |