This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Windows + tomcat 方便部署 | |
set project_home=D:\workspace\lego\nut_bohan.sj_20130724 | |
set app_name=nut-1.0.0-SNAPSHOT | |
set tomcat_home=D:\dev\tomcat-6.0.20 | |
REM 0.编译. 待修复:不显示后续rem提示 | |
@CD "%project_home%" | |
@CALL mvn clean install -DskipTests >nul 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo.powermock; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.powermock.api.mockito.PowerMockito; | |
import org.powermock.core.classloader.annotations.PrepareForTest; | |
import org.powermock.modules.junit4.PowerMockRunner; | |
import static org.junit.Assert.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean process(Map<String, Object> context) throws Exception { | |
BizOrderDO tcOrderDO = (BizOrderDO) context | |
.get(FlowConstants.TC_BIZ_ORDER); | |
FullOrderTO fullOrderTO = (FullOrderTO) context | |
.get(FlowConstants.FULL_ORDER_TO); | |
boolean redo=true; | |
boolean isWarehouseStore = false; | |
boolean isCom = false; | |
// 是否找到库存记录 |