diff --git a/src/test/java/fr/insee/rmes/testcontainers/queries/sparql_queries/operations/operations/OperationsQueriesTest.java b/src/test/java/fr/insee/rmes/testcontainers/queries/sparql_queries/operations/operations/OperationsQueriesTest.java index 64b81dc36..7175c3d1d 100644 --- a/src/test/java/fr/insee/rmes/testcontainers/queries/sparql_queries/operations/operations/OperationsQueriesTest.java +++ b/src/test/java/fr/insee/rmes/testcontainers/queries/sparql_queries/operations/operations/OperationsQueriesTest.java @@ -12,6 +12,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -35,9 +36,17 @@ void should_return_all_operations() throws Exception { } @Test - void should_return_one_operation() throws Exception { + void should_return_operation() throws Exception { OpSeriesQueries.setConfig(new ConfigStub()); + JSONObject result = repositoryGestion.getResponseAsObject(OperationsQueries.operationQuery("s1447")); + assertThat(result.getString("id")).hasToString("s1447"); + assertThat(result.getString("prefLabelLg1")).hasToString("Dispositif d'enquĂȘtes permanentes des conditions de vie 2008"); + assertThat(result.getString("prefLabelLg2")).hasToString("Permanent living conditions survey 2008"); + assertThat(result.getString("altLabelLg2")).hasToString("EPCV scheme 2008"); + assertThat(result.getString("altLabelLg1")).hasToString("EPCV 2008"); + assertThat(result.getString("validationState")).hasToString("Validated"); assertEquals("2024", result.getString("year")); + } }