Skip to content
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

Merged
merged 5 commits into from
Jun 23, 2023

Conversation

ospodaryk
Copy link
Contributor

[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

import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.*;

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());

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
Copy link

@RomaMocherniuk RomaMocherniuk Jun 23, 2023

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
Copy link

@RomaMocherniuk RomaMocherniuk Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not use *

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ABbondar ABbondar self-requested a review June 23, 2023 09:52
@BranetE BranetE self-requested a review June 23, 2023 09:52
@ospodaryk ospodaryk merged commit 4e097fb into dev Jun 23, 2023
@ospodaryk ospodaryk deleted the position-test branch June 23, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Admin cabinet] Fix Position and PositionDTOs, Add tests to all Position DTOs
5 participants