Spring Boot - Testing Spring Boot Applications
Given this test snippet:
What will be printed when the test runs?
@MockBean
private PaymentService paymentService;
@Test
void testProcess() {
when(paymentService.pay()).thenReturn(true);
boolean result = paymentService.pay();
System.out.println(result);
}What will be printed when the test runs?
