-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Admin cabinet] Fix Position and PositionDTOs, Add tests to all Position DTOs #1147
Conversation
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
import lombok.*; |
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.
please do not use *
@@ -25,7 +25,7 @@ public class PositionDtoWithTranslateMapper extends AbstractConverter<Position, | |||
protected PositionWithTranslateDto convert(Position position) { | |||
Map<String, String> nameTranslations = new HashMap<>(); | |||
nameTranslations.put("ua", position.getName()); | |||
nameTranslations.put("en", position.getNameEN()); | |||
nameTranslations.put("en", position.getNameEn()); |
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.
please remove unused import import greencity.dto.position.PositionDto;
@Builder | ||
@EqualsAndHashCode | ||
@ToString | ||
@Data |
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.
please do not use *
@Builder | ||
@ToString | ||
@Data |
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.
please do not use *
Kudos, SonarCloud Quality Gate passed! |
[Admin cabinet] Fix Position and PositionDTOs, Add tests to all Position DTOs
ita-social-projects/GreenCity#5976
Fixed nameEN to nameEn
Added tests to all Position DTOs: AddingPositionDt, PositionDto, PositionWithTranslateDto
Changed annotation to @DaTa