Browse Source

EdgeControllerTest - code style fixes and IDEA warning fixes

pull/7878/head
Volodymyr Babak 4 years ago
parent
commit
e74f03e5be
  1. 6
      application/src/test/java/org/thingsboard/server/controller/BaseEdgeControllerTest.java

6
application/src/test/java/org/thingsboard/server/controller/BaseEdgeControllerTest.java

@ -887,8 +887,8 @@ public abstract class BaseEdgeControllerTest extends AbstractControllerTest {
Edge savedEdge = doPost("/api/edge", edge, Edge.class); Edge savedEdge = doPost("/api/edge", edge, Edge.class);
String installInstructions = doGet("/api/edge/instructions/" + savedEdge.getId().getId().toString(), String.class); String installInstructions = doGet("/api/edge/instructions/" + savedEdge.getId().getId().toString(), String.class);
URL resource = this.getClass().getClassLoader().getResource("edge/install_instructions/docker/expected-install-instructions.md"); URL resource = this.getClass().getClassLoader().getResource("edge/install_instructions/docker/expected-install-instructions.md");
Assert.assertNotNull(resource);
File file = new File(resource.toURI()); File file = new File(resource.toURI());
Assert.assertEquals(new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8), installInstructions); Assert.assertEquals(Files.readString(file.toPath()), installInstructions);
} }
}
}

Loading…
Cancel
Save