Skip to content

Commit 2d36f9d

Browse files
committed
SwingNumberWidgetTest: add BigInteger parameter
Previous to 40bd474, this would throw a NullPointerException. Fixes #70.
1 parent c5a7be9 commit 2d36f9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/org/scijava/ui/swing/widget/SwingNumberWidgetTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ private String[] getExpectedValues() {
109109
"1.000",
110110
"1.0000",
111111
"1.000",
112-
"1.0000"
112+
"1.0000",
113+
"0"
113114
};
114115
}
115116

@@ -135,6 +136,9 @@ private String createScript() {
135136
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"slider,format:0.0000\") n\n" +
136137
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"scroll bar\") o\n" +
137138
"#@ Double (value=1, min=0, max=10, stepSize=0.001, persist=false, style=\"scroll bar,format:0.0000\") p\n" +
139+
"\n" +
140+
"// BigInteger without min, max, stepSize\n" +
141+
"#@ BigInteger (persist=false) q\n" +
138142
"";
139143
return script;
140144
}

0 commit comments

Comments
 (0)