From f73ef15be1e380d14a896326baccb8ca81d745b4 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 25 Jul 2019 20:15:11 +0200 Subject: [PATCH] we allow only nonegative ids --- .../api/projects/models/parameters/ParametersRestImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest-api/src/test/java/lcsb/mapviewer/api/projects/models/parameters/ParametersRestImplTest.java b/rest-api/src/test/java/lcsb/mapviewer/api/projects/models/parameters/ParametersRestImplTest.java index 30a62541b2..381443df78 100644 --- a/rest-api/src/test/java/lcsb/mapviewer/api/projects/models/parameters/ParametersRestImplTest.java +++ b/rest-api/src/test/java/lcsb/mapviewer/api/projects/models/parameters/ParametersRestImplTest.java @@ -29,7 +29,7 @@ public class ParametersRestImplTest extends RestTestFunctions { @Test(expected = ObjectNotFoundException.class) public void testGetParameterForNonExistingModel() throws Exception { parametersRestImpl.getParameter(configurationService.getConfigurationValue(ConfigurationElementType.DEFAULT_MAP), - "-1", "-1"); + "0", "0"); } @Test(expected = ObjectNotFoundException.class) -- GitLab