Question
a Controller MainController that - has a playerDB class injected into it - has a mapping for /players that returns a 'players' template and attaches
a Controller MainController that - has a playerDB class injected into it - has a mapping for "/players" that returns a 'players' template and attaches all players to the model
a Controller GameRestController that - has a playerDB class injected into it - has a mapping for "/mostdifficult" that returns the game with the highest difficulty
a unit test must validate the /players method that it attaches the correct objects to the model and returns the correct template)
----------------------------------------------------------------------------------------------------------------------------------------------------
[MainController] a path get "/creates" that returns a template with a form to create a player a template using thymeleaf that is an html5 form to create a player (and games they own) and submits a post to "/creates" - form should display validation errors if any [MainController] a path post "/creates" that saves a player (to playerdb) if it passes validation or returns back the original form if there are errors
Step by Step Solution
3.48 Rating (161 Votes )
There are 3 Steps involved in it
Step: 1
MainController Mapping for players Returns a template named players and attaches all players from th...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started