Skip to content

Instantly share code, notes, and snippets.

@LNA
Last active August 29, 2015 14:15
Show Gist options
  • Save LNA/799078fcb778149adca8 to your computer and use it in GitHub Desktop.
Save LNA/799078fcb778149adca8 to your computer and use it in GitHub Desktop.
How should I test this?
public class FileRouter implements iResponse {
// omitted code
@Override
public byte[] buildResponseBody(Map<String, String> request) throws IOException {
String fileOneString = request.get("DIRECTORY") + request.get("URI");
Path file = Paths.get(fileOneString);
byte[] body = Files.readAllBytes(filePath);
return body;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment