Skip to content

Commit

Permalink
Merge pull request #1865 from xwandi/fix-test-suite
Browse files Browse the repository at this point in the history
Fix test suite
  • Loading branch information
softservedata authored Nov 7, 2023
2 parents f2866b1 + ae339b5 commit f3fcad7
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 75 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/softserve/teachua/model/Gender.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Gender {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(nullable = false, unique = true)
@Column(nullable = false, unique = true, name = "`value`")
private String value;

}
3 changes: 3 additions & 0 deletions src/main/java/com/softserve/teachua/model/WorkTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.softserve.teachua.constants.Days;
import com.softserve.teachua.dto.marker.Convertible;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
Expand Down Expand Up @@ -38,6 +40,7 @@ public class WorkTime implements Convertible {
private Club club;

@Enumerated(EnumType.ORDINAL)
@Column(name = "`day`")
private Days day;

private String startTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.softserve.teachua.model.Child;
import com.softserve.teachua.model.User;
import com.softserve.teachua.repository.ChildRepository;
import com.softserve.teachua.repository.GenderRepository;
import com.softserve.teachua.service.impl.ChildServiceImpl;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand All @@ -29,6 +30,8 @@ class ChildServiceImplTest {
private DtoConverter dtoConverter;
@Mock
private UserService userService;
@Mock
private GenderRepository genderRepository;

@InjectMocks
private ChildServiceImpl childService;
Expand Down
Loading

0 comments on commit f3fcad7

Please sign in to comment.