@Test public void countPointInSpace() throws Exception { Space spaces[] = pointGenerator.divideSpace(rectSpace, divide); for (Space space : spaces) { pointGenerator.generate(space, pointCnt / (divide * divide)); assertEquals(pointCnt / (divide * divide), space.getPointList().size()); } }
@Test public void countSpace() throws Exception { Space spaces[] = pointGenerator.divideSpace(rectSpace, divide); assertEquals(divide * divide, spaces.length); }