From 646e88c48b7337111c05dc8cd61ca3b04400101e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Bourgeois?= Date: Fri, 23 Feb 2024 15:48:48 +0100 Subject: [PATCH] fix test --- .../rmes/tocolecticaapi/service/ColecticaServiceImplTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/fr/insee/rmes/tocolecticaapi/service/ColecticaServiceImplTest.java b/src/test/java/fr/insee/rmes/tocolecticaapi/service/ColecticaServiceImplTest.java index c7f7c00..6e80931 100644 --- a/src/test/java/fr/insee/rmes/tocolecticaapi/service/ColecticaServiceImplTest.java +++ b/src/test/java/fr/insee/rmes/tocolecticaapi/service/ColecticaServiceImplTest.java @@ -10,6 +10,7 @@ import org.apache.http.message.BasicStatusLine; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.impl.client.CloseableHttpClient; +import org.json.simple.parser.ParseException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; @@ -109,7 +110,7 @@ void testReplaceXmlParameters() { } @Test - public void testGetByType() throws ExceptionColecticaUnreachable, IOException { + public void testGetByType() throws ExceptionColecticaUnreachable, IOException, ParseException { DDIItemType type = DDIItemType.CODE_LIST; when(colecticaService.getByType(type)).thenReturn(ResponseEntity.ok("test"));