设置Junit测试但遇到测试失败。问题似乎与我的assertTrue有关import static org.junit.Assert.*;import org.junit.Test;import com.neueda.cap.spark.model.NeuFixMessage;import quickfix.Message;
public class CalculateFillValue {
@Test
public void test() throws Exception {
CalculateFillValuesMapper test = new CalculateFillValuesMapper();
NeuFixMessage msg= new NeuFixMessage();
msg.setMsgType("8");
msg.setExecType("1");
msg.setLastPx("10.10");
msg.setLastShares("100");
msg = test.call(msg);
assertTrue("The file value should be 1010", msg.getFillValue() == 1010);
}}