Skip to content

Commit 5b0a1cc

Browse files
author
Nicolai Parlog
committed
Implemented a test which asserts that a nested property's properties have the correct bean set.
1 parent bd1a324 commit 5b0a1cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import static org.junit.Assert.assertNotEquals;
1010
import static org.junit.Assert.assertNotSame;
1111
import static org.junit.Assert.assertNull;
12+
import static org.junit.Assert.assertSame;
1213
import static org.junit.Assert.assertTrue;
1314
import javafx.beans.property.Property;
1415

@@ -54,6 +55,13 @@ public void setUp() {
5455

5556
// #region TESTS
5657

58+
/**
59+
* Tests whether the properties the tested property owns have the correct bean.
60+
*/
61+
public void testPropertyBean() {
62+
assertSame(property, property.innerObservablePresentProperty().getBean());
63+
}
64+
5765
/**
5866
* Tests whether the property's initial value (i.e. after construction) is the one held by the nesting's inner
5967
* observable.

0 commit comments

Comments
 (0)