Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
}catch (Exception exception){ this.logger.info(MessageFormat.format("Error while fetching Book with id: {0}", id), exception); throw exception; } } } BooksController.java package com.thevaslabs.springbootunittest.controller; import com.thevaslabs.springbootunittest.models.Books; import