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帖子,但这些帖子看起来并不适合我的问题。