Skip to content

Commit

Permalink
updates guide and summary
Browse files Browse the repository at this point in the history
  • Loading branch information
pmhsfelix committed Sep 26, 2024
1 parent 18ddab3 commit 0c5711b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ This guide aims to improve the understanding of the backend code organization, t

* Add a new function to the `UsersService` interface to obtain the number of valid tokens for a given user.
** Note the properties in the `UsersDomainConfig` class, belonging to the _domain_ group.
** Add at least one test in the `UsersServiceTests` to test this new service functionality.
** Add at least one test in the `UsersServiceTests` to verify this new service functionality.
*** Ensure the test passes successfully, both when running from inside IntelliJ and from inside the shell.

=== Extend the _http_ functionality

* Add to the HTTP API a way to obtain the number of valid tokens for the authenticated user.
** Add at least one test in the `UserTests` to test this new HTTP API functionality.
** Add at least one test in the `UserTests` to verify this new HTTP API functionality.
*** Observe the use of the `@SpringBootTest` annotation in the `UserTests` class and research what is its purpose.
*** Observe the use of the `WebTestClient` class in the tests present in `UserTests`.
*** Ensure the test passes successfully, both when running from inside IntelliJ and from inside the shell.
21 changes: 20 additions & 1 deletion docs/summaries-leic51n.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,23 @@
* Lecture resources:
** link:../code/jvm/spring-boot-mvc-intro[Project with Spring MVC usage examples and extensibility examples].
** link:https://docs.spring.io/spring-framework/reference/web/webmvc.html[Spring MVC framework].
** link:exercises-and-guides/01-00-spring-boot-mvc.adoc[Spring Boot introductory exercises].
** link:exercises-and-guides/01-00-spring-boot-mvc.adoc[Spring Boot introductory exercises].

== Lecture 5 - 2024-09-23

* Backend application software organization.
** Grouping the types and functions into: repository group, services group, domain group, and HTTP group.
** Group characterization
*** Dependencies between groups.
*** Functions with and without side-effects.
*** Technological dependencies with JDBC/JDBI and Spring MVC.
*** Data models.
* Testing
** Testing the repository group.
** Testing the services group.
** Testing the domain group.
** Testing the HTTP API.

* Lecture resources:
** link:lecture-notes/01-02-backend-code-organization.adoc[Backend code organization].
** link:../code/jvm/tic-tac-toe[Tic-tac-toe project].

0 comments on commit 0c5711b

Please sign in to comment.