Skip to content

Commit 51ab23d

Browse files
author
Nicolai Parlog
committed
Minor harmonization of some tests.
1 parent 78aef1a commit 51ab23d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/org/codefx/libfx/nesting/property/AbstractNestedDoublePropertyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public abstract class AbstractNestedDoublePropertyTest extends AbstractNestedPropertyTest<Number, DoubleProperty> {
1313

1414
/**
15-
* The next value returned by {@link #createNewValue()}.
15+
* The last value returned by {@link #createNewValue()}.
1616
*/
1717
private double lastValue = 1.5;
1818

test/org/codefx/libfx/nesting/property/AbstractNestedFloatPropertyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public abstract class AbstractNestedFloatPropertyTest extends AbstractNestedPropertyTest<Number, FloatProperty> {
1313

1414
/**
15-
* The next value returned by {@link #createNewValue()}.
15+
* The last value returned by {@link #createNewValue()}.
1616
*/
1717
private float lastValue = 1.5f;
1818

test/org/codefx/libfx/nesting/property/AbstractNestedIntegerPropertyTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
public abstract class AbstractNestedIntegerPropertyTest extends AbstractNestedPropertyTest<Number, IntegerProperty> {
1313

1414
/**
15-
* The next value returned by {@link #createNewValue()}.
15+
* The last value returned by {@link #createNewValue()}.
1616
*/
17-
private int nextValue = 1;
17+
private int lastValue = 0;
1818

1919
@Override
2020
protected boolean allowsNullValues() {
@@ -23,7 +23,7 @@ protected boolean allowsNullValues() {
2323

2424
@Override
2525
protected Number createNewValue() {
26-
return ++nextValue;
26+
return lastValue++;
2727
}
2828

2929
@Override

0 commit comments

Comments
 (0)