Skip to content
Snippets Groups Projects

M2 course tests

Merged Ester Vilímková requested to merge M2-course-tests into M2

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
31
32
33 @SpringBootTest
34 @AutoConfigureMockMvc
35 final class LectureFacadeTest {
36
37 private final UserDto USER = new UserDto("novakovat",
38 "novakova@gamil.com", "Tereza", "Nováková", new AddressDto());
39 private final LectureCreateDto lectureCreateDto = new LectureCreateDto(
40 LocalDateTime.now().plusDays(2),
41 LocalDateTime.now().plusDays(2).plusHours(2),
42 "Learning how to spell deprecated",
43 10, 0L);
44 private final LectureDto lectureDto = new LectureDto(
45 LocalDateTime.now().plusDays(2),
46 LocalDateTime.now().plusDays(2).plusHours(2),
  • Comment on lines +40 to +46

    tady (a taky ve zbytku) by se asi hodilo LocalDateTime.now() hodit do fieldu, ať je tam jednou, ať to pak nerozbíjí equals testy, každý volání now() je pak o pár ticků posunutý :D

  • Please register or sign in to reply
  • Ester Vilímková added 3 commits

    added 3 commits

    • 3b2c6ac3 - Adding EqualsAndHashcode for course entity and dtos
    • 9b82438b - Making CourseMapperTest use Equals
    • 6e290612 - Merge branch 'M2-course-tests' of...

    Compare with previous version

  • Ester Vilímková marked this merge request as ready

    marked this merge request as ready

  • added 1 commit

    Compare with previous version

  • Jan Pokorný added 1 commit

    added 1 commit

    • b2b2e44c - transformed CourseController to return responseEntity

    Compare with previous version

  • Jan Pokorný added 1 commit

    added 1 commit

    • 8da675b7 - transformed LectureController to return responseEntity

    Compare with previous version

  • Jan Pokorný added 2 commits

    added 2 commits

    • 181dc4b3 - adding proper CourseController apiResponses
    • 5979f72f - adding proper LectureController apiResponses

    Compare with previous version

  • Jan Pokorný added 2 commits

    added 2 commits

    • a28aa98e - fixed mocking facade in CourseControllerTest
    • 9eae414a - fixed mocking facade in LectureControllerTest

    Compare with previous version

  • Ester Vilímková requested review from @xvilimk

    requested review from @xvilimk

  • Jan Pokorný approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading