-
Notifications
You must be signed in to change notification settings - Fork 1
Task #2 (based on actually development branch) #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
|
|
||
| public class SecurityInit extends AbstractSecurityWebApplicationInitializer { | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this class here?
| } | ||
|
|
||
| @RequestMapping("/") | ||
| @RequestMapping("/getCat") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not your functional - shoudn't change localhost:8080/ - for cat - localhost:8080/getCat
localhost:8080/getRole
solid -
|
|
||
| @Controller | ||
| @RequestMapping("/role") | ||
| // localhost:8080/role |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
| import java.util.List; | ||
|
|
||
| public interface RoleService { | ||
| Role add(Role role); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add java doc
| hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect | ||
| hibernate.show_sql=true | ||
| hibernate.format_sql=true | ||
| hibernate.hbm2ddl.auto=update No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never do this!
| private static final String ALL = "/all"; | ||
|
|
||
| @Test | ||
| public void checkAddRole(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need add tests for all public api methods
| public class RoleController { | ||
| private RoleService roleService; | ||
|
|
||
| @RequestMapping(value = "/add", method = RequestMethod.POST, produces = "application/json;charset=utf-8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add please update, delete
Add rest layer for Role (added REST + Integration Test) into actually development branch.