08-02-2023, 07:55 AM
I am using `TestRestTemplate` for integration testing on our product.
I have one test that looks like this:
@Test
public void testDeviceQuery() {
ResponseEntity<Page> deviceInfoPage = template.getForEntity(base, Page.class);
// validation code here
}
This particular request expects a Header value. Can someone please let me know how I can add a header to the `TestRestTemplate` call?
I have one test that looks like this:
@Test
public void testDeviceQuery() {
ResponseEntity<Page> deviceInfoPage = template.getForEntity(base, Page.class);
// validation code here
}
This particular request expects a Header value. Can someone please let me know how I can add a header to the `TestRestTemplate` call?