Fix test for file ending.

This commit is contained in:
Fabian Märki 2017-12-06 12:50:53 +01:00
parent 92710685d6
commit 7eb84d19be
3 changed files with 3 additions and 3 deletions

View File

@ -1215,7 +1215,7 @@ public class CSVQueryRestControllerTest extends AbstractDaqRestTest {
.andDo(MockMvcResultHandlers.print())
.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

View File

@ -1790,7 +1790,7 @@ public class JsonQueryRestControllerTest extends AbstractDaqRestTest implements
.andDo(MockMvcResultHandlers.print())
.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

View File

@ -68,7 +68,7 @@ public class ResponseQueryTest extends AbstractDaqRestTest {
assertEquals(query.getResponse().getFormat(), deserial.getResponse().getFormat());
assertEquals(query.getResponse().getCompression(), deserial.getResponse().getCompression());
assertEquals(query.getResponse().getCompression().getFileSuffix(), deserial.getResponse().getFileSuffix());
assertEquals(query.getResponse().getFileSuffix(), deserial.getResponse().getFileSuffix());
}
@Test