JUNIT,测试,方法中的变量param
public void setCurrentCheckpointCursorAtInitial(Properties props) {
Parameter param = new Parameter();
String ldbid_From = (String)props.get( "LDBID_FROM ");
StaticDatabaseUtil.checkVariableNull( "LDBID_FROM ",ldbid_From, "NFSJ0013E ");
Short ldbidShort = Short.valueOf(ldbid_From);
param.setObject( "LDBID_FROM ",ldbidShort,Types.SMALLINT);
NFS_S_T_EXP_PYMNT_BAL_LCDAO temp = (NFS_S_T_EXP_PYMNT_BAL_LCDAO)dao;
this.cursor = (Object)temp.getCursorNFS_S_T_EXP_PYMNT_BAL_LC_SEL0001(param);
}
------解决方案--------------------
重构吧,把param赋值得部分重构成一个新的方法。