public void testNonTimeAutoMatchesSpan() {
PlotSettingsAxisGroupTester axisGroup = new PlotSettingsAxisGroupTester(false);
axisGroup.reset(settings, true);
axisGroup.updateFrom(view);
NumericTextField span = (NumericTextField) axisGroup.getSpanControl(true);
span.setValue(SPAN);
JLabel min = (JLabel) axisGroup.getControl(false, BoundOption.AUTO, true);
JLabel max = (JLabel) axisGroup.getControl(true , BoundOption.AUTO, true);
((JRadioButton) axisGroup.getControl(false, BoundOption.MANUAL, false)).doClick();
span.setValue(SPAN);
((JRadioButton) axisGroup.getControl(true , BoundOption.AUTO, false)).doClick();
Assert.assertEquals(Double.parseDouble(max.getText().replaceAll("[\\(\\)]", "")),
SETTINGS_MIN + SPAN, EPSILON);
((JRadioButton) axisGroup.getControl(true , BoundOption.MANUAL, false)).doClick();
span.setValue(SPAN);
((JRadioButton) axisGroup.getControl(false, BoundOption.AUTO, false)).doClick();
Assert.assertEquals(Double.parseDouble(min.getText().replaceAll("[\\(\\)]", "")),
SETTINGS_MAX - SPAN, EPSILON);
}