mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
More refactor work, encapsulate classes
This commit is contained in:
1 parent
3e1ec09487
commit
1cebdac9b8
51 files changed
+756
-621
No files matched your search
@@ -43,8 +43,8 @@ public class RequestTests {
|
||||
Assertions.assertNotNull(readRequest.getPayload().position);
|
||||
|
||||
assert readRequest.getPayload().position != null && DUMMY_PAYLOAD.getPayload().position != null;
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.x, readRequest.getPayload().position.x);
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.y, readRequest.getPayload().position.y);
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.z, readRequest.getPayload().position.z);
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.getX(), readRequest.getPayload().position.getX());
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.getY(), readRequest.getPayload().position.getY());
|
||||
Assertions.assertEquals(DUMMY_PAYLOAD.getPayload().position.getZ(), readRequest.getPayload().position.getZ());
|
||||
}
|
||||
}
|
||||
@@ -25,8 +25,8 @@ public class NormalDistributionTests {
|
||||
final double[] xValues = new double[locations.size()];
|
||||
final double[] zValues = new double[locations.size()];
|
||||
for (int i = 0; i < locations.size(); i++) {
|
||||
xValues[i] = locations.get(i).x;
|
||||
zValues[i] = locations.get(i).z;
|
||||
xValues[i] = locations.get(i).getX();
|
||||
zValues[i] = locations.get(i).getZ();
|
||||
}
|
||||
final Plot plot = Plot.plot(Plot.plotOpts()
|
||||
.title("RTP Normal Distribution demo")
|
||||
|
||||
Reference in new issue
Block a user