Fix test for file ending.
This commit is contained in:
parent
92710685d6
commit
7eb84d19be
@ -1215,7 +1215,7 @@ public class CSVQueryRestControllerTest extends AbstractDaqRestTest {
|
|||||||
|
|
||||||
.andDo(MockMvcResultHandlers.print())
|
.andDo(MockMvcResultHandlers.print())
|
||||||
.andExpect(MockMvcResultMatchers.status().isOk())
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
||||||
.andExpect(MockMvcResultMatchers.header().string("Content-Disposition", "attachment; filename=data.gz"));
|
.andExpect(MockMvcResultMatchers.header().string("Content-Disposition", "attachment; filename=data.csv"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1790,7 +1790,7 @@ public class JsonQueryRestControllerTest extends AbstractDaqRestTest implements
|
|||||||
|
|
||||||
.andDo(MockMvcResultHandlers.print())
|
.andDo(MockMvcResultHandlers.print())
|
||||||
.andExpect(MockMvcResultMatchers.status().isOk())
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
||||||
.andExpect(MockMvcResultMatchers.header().string("Content-Disposition", "attachment; filename=data.gz"));
|
.andExpect(MockMvcResultMatchers.header().string("Content-Disposition", "attachment; filename=data.json"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -68,7 +68,7 @@ public class ResponseQueryTest extends AbstractDaqRestTest {
|
|||||||
assertEquals(query.getResponse().getFormat(), deserial.getResponse().getFormat());
|
assertEquals(query.getResponse().getFormat(), deserial.getResponse().getFormat());
|
||||||
assertEquals(query.getResponse().getCompression(), deserial.getResponse().getCompression());
|
assertEquals(query.getResponse().getCompression(), deserial.getResponse().getCompression());
|
||||||
|
|
||||||
assertEquals(query.getResponse().getCompression().getFileSuffix(), deserial.getResponse().getFileSuffix());
|
assertEquals(query.getResponse().getFileSuffix(), deserial.getResponse().getFileSuffix());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user