Authored by wujiexiang

修改类名

... ... @@ -4,10 +4,10 @@ import org.mockito.Mockito;
import java.lang.reflect.Field;
public class MockFieldElement {
public class MockFactory {
private Object bean;
public MockFieldElement(Object bean) {
public MockFactory(Object bean) {
this.bean = bean;
}
... ...
... ... @@ -4,7 +4,7 @@ import com.google.common.collect.Lists;
import com.yohobuy.ufo.model.order.common.EntrySellerType;
import com.yohobuy.ufo.model.order.constants.SkupType;
import com.yohoufo.dal.order.model.SellerOrderStatsResult;
import com.yohoufo.order.MockFieldElement;
import com.yohoufo.order.MockFactory;
import com.yohoufo.order.model.bo.PlatformServiceFeeDefinition;
import com.yohoufo.order.model.bo.SellerPlatformServiceFee;
import com.yohoufo.order.model.bo.SellerServiceFeeRuleDefinition;
... ... @@ -41,9 +41,9 @@ public class SellerOrderQuantityStatsTest {
@Before
public void setup() throws IOException {
MockFieldElement mainInstanceElement = new MockFieldElement(mainInstance);
statsConfigurationManager = mainInstanceElement.mock("statsConfigurationManager", SellerOrderStatsConfigurationManager.class);
sellerServiceFeeRuleCacheService = mainInstanceElement.mock("sellerServiceFeeRuleCacheService", SellerServiceFeeRuleCacheService.class);
MockFactory mockFactory = new MockFactory(mainInstance);
statsConfigurationManager = mockFactory.mock("statsConfigurationManager", SellerOrderStatsConfigurationManager.class);
sellerServiceFeeRuleCacheService = mockFactory.mock("sellerServiceFeeRuleCacheService", SellerServiceFeeRuleCacheService.class);
}
/**
... ...