2017-05-31 153 views
0

我在調試模式下運行Netbeans 8.2的新安裝並在myId字段上有一個斷點的測試用例。NetBeans調試器不會在斷點處停止

@Test 
    public void testCreateDocumentSecurityNullRequest() throws Exception { 
     final Integer myId = 1; 

     myRequest request = null; 

     mockMvc.perform(post("/pathTo/apply/" + myId).contentType(contentType).content(json(request))) 
       .andExpect(jsonPath("$.code", is("400"))); 
    } 

我知道測試執行,因爲我看到測試結果,但調試器不停止在我的中斷點。

調試器控制檯顯示:

Listening on 23206 
User program running 
LineBreakpoint myTest.java : 'line #' successfully submitted. 
User program finished 

我不明白爲什麼它不停止,只是繼續?我在Eclipse中嘗試了它,它停下來,讓我繼續按我的預期。我敢肯定,我只是誤解了一些簡單的東西,但我讀了documentation,沒有任何東西對我有用。我也看了一些類似的Stack Overflow帖子,但這些帖子看起來並不適合我的問題。

回答

0

... \ AppData \ Roaming \ NetBeans \ 8.2 \ config \ Services \ org-netbeans-modules-debugger-Settings.properties - 從該文件中刪除所有'斷點'行。

相關問題