-
Notifications
You must be signed in to change notification settings - Fork 7
story #13791: clean code #2360
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
base: develop
Are you sure you want to change the base?
story #13791: clean code #2360
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ public class SecurityProfileExternalController { | |
public Collection<SecurityProfileDto> getAll(final Optional<String> criteria) { | ||
LOGGER.debug("get all customer criteria={}", criteria); | ||
SanityChecker.sanitizeCriteria(criteria); | ||
return securityProfileExternalService.getAll(criteria); | ||
return securityProfileExternalService.getAll(); | ||
Comment on lines
94
to
+96
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A quoi sert la variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. D'accord avec Hassane, il faut supprimer la variable |
||
} | ||
|
||
@Secured(ServicesData.ROLE_GET_SECURITY_PROFILES) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ | |
import fr.gouv.vitamui.commons.api.domain.ServicesData; | ||
import fr.gouv.vitamui.commons.vitam.api.dto.VitamUISearchResponseDto; | ||
import fr.gouv.vitamui.referential.common.rest.RestApi; | ||
import fr.gouv.vitamui.referential.external.server.service.unit.UnitExtternalService; | ||
import fr.gouv.vitamui.referential.external.server.service.unit.UnitExternalService; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
@@ -67,7 +67,7 @@ | |
public class UnitExternalController { | ||
|
||
@Autowired | ||
private UnitExtternalService unitExternalService; | ||
private UnitExternalService unitExternalService; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C'est utilisé où ? |
||
|
||
@GetMapping(CommonConstants.PATH_ID) | ||
@Secured(ServicesData.ROLE_GET_UNITS) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ | |
import static org.mockito.Mockito.times; | ||
import static org.mockito.Mockito.verify; | ||
|
||
class AccessionRegisterInternalServiceTest { | ||
class AccessionRegisterExternalServiceTest { | ||
|
||
@InjectMocks | ||
AccessionRegisterExternalService accessionRegisterExternalService; | ||
|
@@ -148,7 +148,9 @@ void should_call_appropriate_api_once_when_get_paginated_is_invoked() | |
private <T> RequestResponse<T> buildResponseFrom(String filename, Class<T> clazz) | ||
throws IOException, InvalidParseOperationException { | ||
InputStream inputStream = | ||
AccessionRegisterInternalServiceTest.class.getClassLoader().getResourceAsStream(filename); | ||
fr.gouv.vitamui.referential.internal.server.service | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Classe à bouger. |
||
.AccessionRegisterExternalServiceTest.class.getClassLoader() | ||
.getResourceAsStream(filename); | ||
assert inputStream != null; | ||
JsonNode data = objectMapper.readValue(ByteStreams.toByteArray(inputStream), JsonNode.class); | ||
return RequestResponseOK.getFromJsonNode(data, clazz); | ||
|
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.
Enlever
criteria
si pas utilisé.