填空题 You have the following Java method: Which addition would you have to make to this method to correctly validate that the response JSON contains two items?@Test
public void testJSON() throws Exception {
this.mockMvc.perform(get("/items"))
.andExpect(status().isOk())
//insert answer here
}
相关试题
填空题 Which of the following commands correctly starts a grid hub?
填空题 Which of the following is an example of an SQL database which offers an explicit in-memory mode of operation?
填空题 In your Java test class, which is using JUnit5, all your test methods use a mock of a repository class that needs to be initialized every time a test is executed. Which of the following options describe the best way to set up the repository mock?
填空题 What is the correct syntax to create a spy for an array list with the help of mockito annotation?
填空题 What's the definition of the mutation score in mutation testing?
填空题 Which of the following Selenium methods allows you to run JavaScript code in a browser?
填空题 Given the following report of a mutation testing tool:Total mutations: 10
Mutations executed: 10
Mutations not executed: 0
Killed mutations: 7
Survived mutations: 3
Which of the following options could be a valid conclusion after applying some basic analysis?
填空题 Which of the following principles is a good practice while mocking and testing?