Exception in thread "main" java.lang.IllegalArgumentException: Error: parameter '-port' not specified
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.defaultInit(RemoteTestRunner.java:266)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.init(RemoteTestRunner.java:196)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:185)
这怎么回事,该怎么解决呀?
------解决方法--------------------------------------------------------
没有指定远程调试的端口
------解决方法--------------------------------------------------------
public void testGetNewCntList()
{
try
{
Connection conn = tran.getConnection();
OfficeDao officeDAO = new OfficeDao(conn);
NewReqBaseVo newReq = new NewReqBaseVo();
newReq.setNewCde("NEW00001-00001");
newReq.setNewComCde("test1");
newReq.setNewEda(1);
ArrayList contracts = new ArrayList();
contracts = officeDAO.getNewCntList(newReq);
TestCase.assertEquals(contracts.size(),10);
NewCntVo newCntVo = new NewCntVo();
newCntVo = (NewCntVo)contracts.get(0);
TestCase.assertEquals(1,newCntVo.getNewCntClsCnt());
TestCase.assertEquals("test1",newCntVo.getNewComCde());
TestCase.assertEquals("NEW00001-00001",newCntVo.getNewCde());
TestCase.assertEquals(1,newCntVo.getNewEda());
TestCase.assertEquals(0,newCntVo.getNewCntNecCls());
} catch (SQLException e)
{
e.printStackTrace();
assertTrue(false);
}
}