From b338477b965de87cfcbe983e4bf6379c2bcb2d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=A4rki?= Date: Mon, 11 Jul 2016 13:43:08 +0200 Subject: [PATCH] Less channels. --- .../queryrest/controller/QueryRestControllerJsonTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/ch/psi/daq/test/queryrest/controller/QueryRestControllerJsonTest.java b/src/test/java/ch/psi/daq/test/queryrest/controller/QueryRestControllerJsonTest.java index 21dace7..15e7677 100644 --- a/src/test/java/ch/psi/daq/test/queryrest/controller/QueryRestControllerJsonTest.java +++ b/src/test/java/ch/psi/daq/test/queryrest/controller/QueryRestControllerJsonTest.java @@ -150,8 +150,8 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest { .andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists()) .andExpect(MockMvcResultMatchers.jsonPath("$[0].backend").value(Backend.SF_DATABUFFER.getKey())) .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels").isArray()) - .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[24]").exists()) - .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[25]").doesNotExist()) + .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[23]").exists()) + .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[24]").doesNotExist()) // .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists()) // .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name())) // .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray()) @@ -176,8 +176,8 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest { .andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists()) .andExpect(MockMvcResultMatchers.jsonPath("$[0].backend").value(Backend.SF_DATABUFFER.getKey())) .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels").isArray()) - .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[25]").exists()) - .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[26]").doesNotExist()) + .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[24]").exists()) + .andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[25]").doesNotExist()) // .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists()) // .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name())) // .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())