Merge branch 'test6.8.5' of http://git.yoho.cn/ufo/yohoufo-fore into test6.8.5
Showing
1 changed file
with
28 additions
and
0 deletions
1 | +package com.yohoufo.order.service; | ||
2 | + | ||
3 | +import com.yohobuy.ufo.model.order.common.EntrySellerType; | ||
4 | +import com.yohoufo.order.BaseWebTest; | ||
5 | +import com.yohoufo.order.service.impl.SellerService; | ||
6 | +import org.junit.Assert; | ||
7 | +import org.junit.Test; | ||
8 | +import org.springframework.beans.factory.annotation.Autowired; | ||
9 | + | ||
10 | +/** | ||
11 | + * Created by chao.chen on 2019/1/9. | ||
12 | + */ | ||
13 | +public class SellerServiceTest extends BaseWebTest { | ||
14 | + | ||
15 | + @Autowired | ||
16 | + private SellerService sellerService; | ||
17 | + | ||
18 | + @Test | ||
19 | + public void testGetEntrySellerType(){ | ||
20 | + EntrySellerType none = sellerService.getEntrySellerType(44); | ||
21 | + Assert.assertEquals(none, EntrySellerType.NOT_ENTRY); | ||
22 | + //exit entry | ||
23 | + Assert.assertEquals(sellerService.getEntrySellerType(500031990), EntrySellerType.NOT_ENTRY); | ||
24 | + Assert.assertEquals(sellerService.getEntrySellerType(500031424), EntrySellerType.COMMON); | ||
25 | + Assert.assertEquals(sellerService.getEntrySellerType(666666), EntrySellerType.SUPER_ENTRY); | ||
26 | + Assert.assertEquals(sellerService.getEntrySellerType(600033430), EntrySellerType.SPECIAL_SUPER); | ||
27 | + } | ||
28 | +} |
-
Please register or login to post a comment