public void testSetAsText() {
ScaleInfoEditor editor = new ScaleInfoEditor();
editor.setAsText("1:2000");
Object o = editor.getValue();
Assert.assertTrue(o instanceof ScaleInfo);
ScaleInfo info = (ScaleInfo)o;
Assert.assertEquals(1, info.getNumerator(), 0.001);
Assert.assertEquals(2000, info.getDenominator(), 0.001);
Assert.assertEquals(0, info.getPixelPerUnit(), 0);
cdpp.completeScale(info, 10);
Assert.assertEquals(0.005, info.getPixelPerUnit(), 0.00001);
}