|
|
package com.yohoufo.order.service;
|
|
|
|
|
|
import com.yohobuy.ufo.model.order.common.EntrySellerType;
|
|
|
import com.yohoufo.order.BaseWebTest;
|
|
|
import com.yohoufo.order.service.impl.SellerService;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
/**
|
|
|
* Created by chao.chen on 2019/1/9.
|
|
|
*/
|
|
|
public class SellerServiceTest extends BaseWebTest {
|
|
|
|
|
|
@Autowired
|
|
|
private SellerService sellerService;
|
|
|
|
|
|
@Test
|
|
|
public void testGetEntrySellerType(){
|
|
|
EntrySellerType none = sellerService.getEntrySellerType(44);
|
|
|
Assert.assertEquals(none, EntrySellerType.NOT_ENTRY);
|
|
|
//exit entry
|
|
|
Assert.assertEquals(sellerService.getEntrySellerType(500031990), EntrySellerType.NOT_ENTRY);
|
|
|
Assert.assertEquals(sellerService.getEntrySellerType(500031424), EntrySellerType.COMMON);
|
|
|
Assert.assertEquals(sellerService.getEntrySellerType(666666), EntrySellerType.SUPER_ENTRY);
|
|
|
Assert.assertEquals(sellerService.getEntrySellerType(600033430), EntrySellerType.SPECIAL_SUPER);
|
|
|
}
|
|
|
} |
...
|
...
|
|