@Test(expectedExceptions = NumberFormatException.class) public void illegalArgumentException() { IJavaElement slider = driver.findElementByTagName("slider"); marathon_select(slider, "ten"); AssertJUnit.assertEquals("", slider.getAttribute("value")); }
@Override public boolean marathon_select(String value) { ((JSlider) component).setValue(Integer.valueOf(Integer.parseInt(value))); return true; }
JSliderJavaElement extends AbstractJavaElement { @Override public boolean marathon_select(String value) { ((JSlider) component).setValue(Integer.valueOf(Integer.parseInt(value))); return true; } }
JSliderJavaElement extends AbstractJavaElement { @Override public boolean marathon_select(String value) { ((JSlider) component).setValue(Integer.valueOf(Integer.parseInt(value))); return true; } JSliderJavaElement(Component component, IJavaAgent driver, JWindow window); }
JSliderJavaElement extends AbstractJavaElement { @Override public boolean marathon_select(String value) { ((JSlider) component).setValue(Integer.valueOf(Integer.parseInt(value))); return true; } JSliderJavaElement(Component component, IJavaAgent driver, JWindow window); @Override String _getText(); static String getCurrentValue(JSlider slider); @Override boolean marathon_select(String value); }
JSliderJavaElement extends AbstractJavaElement { @Override public boolean marathon_select(String value) { ((JSlider) component).setValue(Integer.valueOf(Integer.parseInt(value))); return true; } JSliderJavaElement(Component component, IJavaAgent driver, JWindow window); @Override String _getText(); static String getCurrentValue(JSlider slider); @Override boolean marathon_select(String value); static final Logger LOGGER; }