Browse Source

单元测试修改

feature/big-screen
kerry 4 years ago
parent
commit
31181c4937
  1. 12
      designer-base/src/test/java/com/fr/design/mainframe/JFormSliderPaneTest.java

12
designer-base/src/test/java/com/fr/design/mainframe/JFormSliderPaneTest.java

@ -9,18 +9,6 @@ import org.junit.Test;
*/
public class JFormSliderPaneTest {
@Test
public void testParseInputValue() {
JFormSliderPane sliderPane = new JFormSliderPane();
int result = Reflect.on(sliderPane).call("parseInputValue", "100%").get();
Assert.assertEquals(100, result);
result = Reflect.on(sliderPane).call("parseInputValue", "50%").get();
Assert.assertEquals(50, result);
result = Reflect.on(sliderPane).call("parseInputValue", "50").get();
Assert.assertEquals(50, result);
result = Reflect.on(sliderPane).call("parseInputValue", "50abc").get();
Assert.assertEquals(100, result);
}
@Test
public void testGetPreferredValue() {

Loading…
Cancel
Save