Authored by wujiexiang

junit test

@@ -62,4 +62,10 @@ public class SellerEnterTypeChangeEventTest extends BaseWebTest { @@ -62,4 +62,10 @@ public class SellerEnterTypeChangeEventTest extends BaseWebTest {
62 BigDecimal feeRate = sellerPlatformServiceFeeSupport.getPlatformServiceFeeRate(500031424, SkupType.IN_STOCK); 62 BigDecimal feeRate = sellerPlatformServiceFeeSupport.getPlatformServiceFeeRate(500031424, SkupType.IN_STOCK);
63 Assert.assertEquals(feeRate.toPlainString(),"0.049"); 63 Assert.assertEquals(feeRate.toPlainString(),"0.049");
64 } 64 }
  65 +
  66 + @Test
  67 + public void getPlatformServiceFeeRate_withoutRules() {
  68 + BigDecimal feeRate = sellerPlatformServiceFeeSupport.getPlatformServiceFeeRate(500031424, SkupType.IN_STOCK);
  69 + Assert.assertEquals(feeRate,null);
  70 + }
65 } 71 }