use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class StaticFilesFromArchiveTest method testCss.
@Test
public void testCss() throws Exception {
UrlResponse response = testUtil.doMethod("GET", "/css/style.css", null);
String expectedContentType = response.headers.get("Content-Type");
assertEquals(expectedContentType, "text/css");
String body = response.body;
assertEquals("Content of css file", body);
}
Aggregations