Skip to content

Commit d09c4f4

Browse files
committed
Fix OptionsTest's assumption that bar was not persisted previously
Once the test ran successfully, bar is distinctively different from 0... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 8fa230a commit d09c4f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/org/scijava/options/OptionsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public void testPersistence() {
9494
final FooOptions fooOptions = optionsService.getOptions(FooOptions.class);
9595

9696
// bar should initially be 0
97+
fooOptions.setBar(0);
9798
assertEquals(0, fooOptions.getBar());
9899

99100
// verify that we can set bar to a desired value at all

0 commit comments

Comments
 (0)