РС
Size: a a a
РС
C
C
ИИ
ИИ
ЯЗ
.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
@RunWith(SpringRunner.class)
@ContextConfiguration(classes=Main.class)
@WebMvcTest(NeuronController.class)
public class AlgorithmTest {
private List<String> testUrlImage = Arrays.asList("https://avatars.mds.yandex.net/get-pdb/211794/5e1e6c4b-13c3-4f5b-bf12-369721517953/s1200",
"https://avatars.mds.yandex.net/get-pdb/231404/b178dd11-8567-4e16-a5a1-77e9fc716954/s1200",
"https://avatars.mds.yandex.net/get-pdb/69339/27124ab9-8529-4df0-8f8b-8bd2191bf842/s1200",
"https://avatars.mds.yandex.net/get-pdb/245485/9f403fda-62c8-4107-b8a8-39ec2e29f994/s1200",
"https://avatars.mds.yandex.net/get-pdb/236760/b9722106-cdfb-4a98-86bd-ffc3907367b2/s1200");
@Autowired
private MockMvc mockMvc;
private UrlCloudyZTwo cloudyZTwo = new UrlCloudyZTwo(null, testUrlImage, "20", "1000", null);
@Autowired
private ObjectMapper mapper;
@Before
public void setup() {
}
@Test
public void testReturn200() throws Exception {
mockMvc.perform(get("/pгh")
.contentType(MediaType.APPLICATION_JSON)
.content(mapper.writeValueAsString(cloudyZTwo))
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());
}
}
@RestController
@RequestMapping(value = "/", produces = MediaType.APPLICATION_JSON_VALUE)
public class NeuronController {
@GetMapping(value = "/pгh")
public ResponseEntity<List<List<Integer>>> getDis(UrlCloudyZTwo urls) throws Exception {
}
ЯЗ
AG
.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
@RunWith(SpringRunner.class)
@ContextConfiguration(classes=Main.class)
@WebMvcTest(NeuronController.class)
public class AlgorithmTest {
private List<String> testUrlImage = Arrays.asList("https://avatars.mds.yandex.net/get-pdb/211794/5e1e6c4b-13c3-4f5b-bf12-369721517953/s1200",
"https://avatars.mds.yandex.net/get-pdb/231404/b178dd11-8567-4e16-a5a1-77e9fc716954/s1200",
"https://avatars.mds.yandex.net/get-pdb/69339/27124ab9-8529-4df0-8f8b-8bd2191bf842/s1200",
"https://avatars.mds.yandex.net/get-pdb/245485/9f403fda-62c8-4107-b8a8-39ec2e29f994/s1200",
"https://avatars.mds.yandex.net/get-pdb/236760/b9722106-cdfb-4a98-86bd-ffc3907367b2/s1200");
@Autowired
private MockMvc mockMvc;
private UrlCloudyZTwo cloudyZTwo = new UrlCloudyZTwo(null, testUrlImage, "20", "1000", null);
@Autowired
private ObjectMapper mapper;
@Before
public void setup() {
}
@Test
public void testReturn200() throws Exception {
mockMvc.perform(get("/pгh")
.contentType(MediaType.APPLICATION_JSON)
.content(mapper.writeValueAsString(cloudyZTwo))
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());
}
}
@RestController
@RequestMapping(value = "/", produces = MediaType.APPLICATION_JSON_VALUE)
public class NeuronController {
@GetMapping(value = "/pгh")
public ResponseEntity<List<List<Integer>>> getDis(UrlCloudyZTwo urls) throws Exception {
}
AG
ЯЗ
ЯЗ
AG
ЯЗ
ЯЗ
ЯЗ
JH
Y
VP
Ar
L