Mokito-muzix
Write test cases to th.e following tasks using mockito
Tasks to be Done Post Demo
- Complete all the endpoints for CRUD operations on Muzix
- Use h2-console to view in-memory data
- Add an endpoint to search trackByName. Understand @Query and parameter passing to @Query
- Generate API documentation using Swagger 2
- Create custom exceptions TrackNotFoundException, TrackAlreadyExistsException in a com.stack....exceptions package. Perform appropriate exception handling and propagation Back.
- Running Logic on Startup in Spring. Create seed data to pre-fill the database with track information whenever the application starts. Use both approaches: Approach 1: ApplicationListener Approach 2: CommandLineRunner (Find out how it differs from ApplicationRunner) 7.Global exception using Controller advice 8.Remove all hard coded data from the application code to application.properties a)by using @Value. b)by using @PropertySource c)by using Environment (https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/env/ Environment.html)