Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: c5e45b5c by Tony Chemit at 2021-12-04T15:35:59+01:00 [jgitflow-maven-plugin]updating poms for branch'release/9.0.0-RC-22' with non-snapshot versions[skip ci] - - - - - 6ff3a1b3 by Tony Chemit at 2021-12-04T16:43:35+01:00 Review get API - Closes ultreiaio/ird-observe#2132 - - - - - 2f659f2c by Tony Chemit at 2021-12-04T16:56:14+01:00 [jgitflow-maven-plugin]merging 'release/9.0.0-RC-22' into 'master' - - - - - e2ffb7d8 by Tony Chemit at 2021-12-04T16:56:19+01:00 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts[skip ci] - - - - - 8b7e3dff by Tony Chemit at 2021-12-04T16:56:20+01:00 [jgitflow-maven-plugin]merging 'master' into 'develop' - - - - - bd97fbf9 by Tony Chemit at 2021-12-04T16:56:21+01:00 [jgitflow-maven-plugin]Updating develop poms back to pre merge state[skip ci] - - - - - 1 changed file: - services/api-test/src/main/java/fr/ird/observe/services/service/api/ReferentialEntityServiceFixtures.java Changes: ===================================== services/api-test/src/main/java/fr/ird/observe/services/service/api/ReferentialEntityServiceFixtures.java ===================================== @@ -83,8 +83,7 @@ public class ReferentialEntityServiceFixtures extends GeneratedReferentialEntity ToolkitRequestConfig config = new ToolkitRequestConfig(false, false, true, false); ToolkitTreeNodeStates actual; // all - actual = service.getSome(ProgramDto.class, config, - Map.of()); + actual = service.getAll(ProgramDto.class, config,Map.of()); DataEntityServiceFixtures.assertStates(actual, 36); // on exact id actual = service.getSome(ProgramDto.class, config, @@ -236,16 +235,15 @@ public class ReferentialEntityServiceFixtures extends GeneratedReferentialEntity } protected <D extends ReferentialDto> void testGetAll(ReferentialEntityService service, ToolkitRequestConfig config, Class<D> referentialType) { - ToolkitTreeNodeStates all = service.getSome(referentialType, config, null, null, false); + ToolkitTreeNodeStates all = service.getAll(referentialType, config, Map.of()); Assert.assertNotNull(all); int allCount = DataEntityServiceFixtures.assertStates(all, l -> true); ToolkitTreeNodeStates actual = service.getAll(referentialType, config, Map.of()); DataEntityServiceFixtures.assertStates(actual, l -> l == allCount); } - protected <D extends ReferentialDto> void testGet(ReferentialEntityService service, ToolkitRequestConfig config, Class<D> referentialType) { - ToolkitTreeNodeStates all = service.getSome(referentialType, config, null, null, false); + ToolkitTreeNodeStates all = service.getAll(referentialType, config, Map.of()); Assert.assertNotNull(all); int allCount = DataEntityServiceFixtures.assertStates(all, l -> true); boolean empty = allCount == 0; View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/7f73a7c5c63c8627925eeaa78... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/7f73a7c5c63c8627925eeaa78... You're receiving this email because of your account on gitlab.com.