2016-07-19 43 views
1

當使用EvoSuite Eclipse Plugin爲在Dynamic Web Project中擴展HttpServlet的類生成測試用例時,出現以下錯誤。使用EvoSuite Eclipse插件生成測試用例時出錯

enter image description here

那些中國字的含義「Windows無法找到該文件F:\的Java \ J2EEWorkspace \ EvoSuiteTest \ evosuite檢驗\ COM \ S \ TestServlet_ESTest.java請嘗試檢查文件重新命名「。

代碼將由EvoSuite Eclipse插件生成的

package com.servlet; 

import javax.servlet.http.HttpServlet; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 

public class TestServlet extends HttpServlet { 
    private static final long serialVersionUID = 1L; 

    public void service(HttpServletRequest request, HttpServletResponse  response){ 
     System.out.println("I am a test..."); 
    } 

} 

回答

0

如果我們增加servlet容器罐(例如Tomcat中/ lib中的jar文件)到項目再次儘管服務器運行時庫已經添加了,問題就解決了。我不知道原因是什麼。這可能是一個Evosuite的錯誤。