BoundingBoxFilter extends AreaFilter { @Override protected boolean isNodeWithinArea(Node node) { double latitude; double longitude; latitude = node.getLatitude(); longitude = node.getLongitude(); for (Bound b : bound.toSimpleBound()) { if (b.getTop() >= latitude && b.getBottom() <= latitude && b.getLeft() <= longitude && b.getRight() >= longitude) { return true; } } return false; } BoundingBoxFilter(IdTrackerType idTrackerType,
	        double left,
	        double right,
	        double top,
	        double bottom,
	        boolean clipIncompleteEntities,
	        boolean completeWays,
	        boolean completeRelations,
	        boolean cascadingRelations); @Override void process(BoundContainer boundContainer);  }
@Test public final void testIsNodeWithinArea1() { assertTrue( "Node lying inside filter area not considered inside area", simpleAreaFilter.isNodeWithinArea(inAreaNode)); }
@Test public final void testIsNodeWithinArea2() { assertFalse( "Node lying outside filter area not considered outside area", simpleAreaFilter.isNodeWithinArea(outOfAreaNode)); }
@Test public final void testIsNodeWithinArea3() { assertTrue( "Node lying on East edge of filter area not considered inside area", simpleAreaFilter.isNodeWithinArea(edgeNodeEast)); }
@Test public final void testIsNodeWithinArea4() { assertTrue( "Node lying on West edge of filter area not considered inside area", simpleAreaFilter.isNodeWithinArea(edgeNodeWest)); }
@Test public final void testIsNodeWithinArea5() { assertTrue( "Node lying on North edge of filter area not considered inside area", simpleAreaFilter.isNodeWithinArea(edgeNodeNorth)); }
@Test public final void testIsNodeWithinArea6() { assertTrue( "Node lying on South edge of filter area not considered inside area", simpleAreaFilter.isNodeWithinArea(edgeNodeSouth)); }