}
public TestHandler( int numFeatures, String featureTypeName) throws Exception {
super(null, null);
ToolContextImpl context = new ToolContextImpl();
map = MapTests.createDefaultMap(featureTypeName, numFeatures, true, new Dimension(10,10));
context.setMapInternal(map);
context.setRenderManagerInternal(map.getRenderManagerInternal());
((RenderManager)context.getRenderManager()).setMapDisplay(new TestViewportPane(new Dimension(500,500)));
setContext(context);
testing=true;
bb=new TestEditBlackboard(10,10, context.worldToScreenTransform(), map.getLayersInternal().get(0).layerToMapTransform());
setCurrentState(EditState.NONE);
setCurrentShape(null);
}