Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed Apr 23, 2017
1 parent eddd72a commit 4ceff39
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/test/java/spark/staticfiles/StaticFilesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,11 @@
*/
package spark.staticfiles;

import static spark.Spark.exception;
import static spark.Spark.get;
import static spark.Spark.staticFiles;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URLEncoder;

import org.hamcrest.CoreMatchers;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
Expand All @@ -37,6 +32,10 @@
import spark.examples.exception.NotFoundException;
import spark.util.SparkTestUtil;

import static spark.Spark.exception;
import static spark.Spark.get;
import static spark.Spark.staticFiles;

/**
* Test static files
*/
Expand Down Expand Up @@ -142,7 +141,9 @@ public void testStaticFilePageHtml() throws Exception {
public void testDirectoryTraversalProtectionLocal() throws Exception {
String path = "/" + URLEncoder.encode("..\\spark\\", "UTF-8") + "Spark.class";
SparkTestUtil.UrlResponse response = doGet(path);

Assert.assertEquals(400, response.status);

testGet();
}

Expand Down

0 comments on commit 4ceff39

Please sign in to comment.