- if (testDDAReply.getDirectory().equals(directory.get())) {
- try {
- String readContent = Files.readAllLines(new File(testDDAReply.getReadFilename()).toPath()).get(0);
- sendMessage(new TestDDAResponse(directory.get(), readContent));
- } catch (IOException e) {
- e.printStackTrace();
- sendMessage(new TestDDAResponse(directory.get(), "failed-to-read"));
- }
+ try {
+ String readContent = Files.readAllLines(new File(testDDAReply.getReadFilename()).toPath()).get(0);
+ sendMessage(new TestDDAResponse(directory.get(), readContent));
+ } catch (IOException e) {
+ sendMessage(new TestDDAResponse(directory.get(), "failed-to-read"));