495051525354555657
tree.addNode(new TestNode(1, 1)); BarnesHut barnesHut = new BarnesHut(new TestForce()); ForceVector f = barnesHut.calculateForce(tree, tree); assertNotNull(f); assertEquals(f.x(), 1, eps); assertEquals(f.y(), 1, eps); } }