package org.xmx0632.deliciousfruit.erp;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
@Ignore
public class ErpServiceTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testFindByUsername() {
String api = "http://xx:81/core/port.php";
fail("Not yet implemented");
}
// 从ERP同步用户信息,写入本地数据库
@Test
public void testPullUserInfo() {
fail("Not yet implemented");
}
// 把本地新增的用户信息,同步写入ERP
@Test
public void testPushLastestChangedUserInfoToErp() throws Exception {
fail("Not yet implemented");
}
// 从ERP同步用户收货信息,写入本地数据库
@Test
public void testPullUserAddressInfo() {
fail("Not yet implemented");
}
// 把本地新增/修改的用户收货信息,同步写入ERP
@Test
public void testPushLastestChangedUserAddressInfoToErp() throws Exception {
fail("Not yet implemented");
}
// 订购接口调用顺序示例:
// 1.读一下礼品卡、现金券、积分、储值账户 (调用4.现金券:type=>mCash)
// 2.扣钱 (调用6.扣现金券:type=>mChangeCash)
// 3.订购 (调用11.订购-现金券:type=>mOrderCash)
// 如果decFree,change,full,都是0,则是单品促销,表示子表里产品ID为${erpProduct}的产品促销,如果购买满${intPromotionLimit}件商品,则以单价${decPromotionValue}销售
// a)单品促销订购
@Test
public void testOrderProductOnPromotion() throws Exception {
fail("not implemented");
// 1.读一下礼品卡、现金券、积分、储值账户 (调用4.现金券:type=>mCash)
// 2.扣钱 (调用6.扣现金券:type=>mChangeCash)
// 3.订购 (调用11.订购-现金券:type=>mOrderCash)
}
// 如果decFullValue有值,全场立减;表示满${decFullValue} 就减掉主表里的${decMinusValue}元
// b)全场满立减订购
@Test
public void testOrderDeductWhenUp() throws Exception {
fail("not implemented");
// 1.读一下礼品卡、现金券、积分、储值账户 (调用4.现金券:type=>mCash)
// 2.扣钱 (调用6.扣现金券:type=>mChangeCash)
// 3.订购 (调用11.订购-现金券:type=>mOrderCash)
}
// 如果decFreeValue有值,是全场送;表示满${decFreeValue}就送 子表里erpMainProduct对应的产品
// c)全场送订购
@Test
public void testOrderRewardForGifts() throws Exception {
fail("not implemented");
// 1.读一下礼品卡、现金券、积分、储值账户 (调用4.现金券:type=>mCash)
// 2.扣钱 (调用6.扣现金券:type=>mChangeCash)
// 3.订购 (调用11.订购-现金券:type=>mOrderCash)
}
// 从ERP同步产品信息到本地数据库
@Test
public void testSyncProduct() throws Exception {
fail("not implemented");
}
// 从ERP同步促销规则主表到本地数据库
@Test
public void testSyncPromotion() throws Exception {
fail("not implemented");
}
// 从ERP同步促销规则子表到本地数据库
@Test
public void testSyncPromotionProduct() throws Exception {
fail("not implemented");
}
}