UnitVectorProperty extends SimpleObjectProperty<Vector2dfx> { @Override public void set(Vector2dfx newValue) { assert newValue != null : AssertMessages.notNullParameter(); set(newValue.getX(), newValue.getY()); } UnitVectorProperty(Object bean, String name, GeomFactory2dfx factory); GeomFactory2dfx getGeomFactory(); @Override Vector2dfx get(); @Override void set(Vector2dfx newValue); void set(double x, double y); double getX(); double getY(); @Pure ReadOnlyDoubleProperty xProperty(); @Pure ReadOnlyDoubleProperty yProperty();  }
@Test public void setDoubleDouble_notUnitVector() { assertThrows(AssertionError.class, () -> this.property.set(ox, oy)); }
@Test public void setVector2fx_notUnitVector() { assertThrows(AssertionError.class, () -> this.property.set(new Vector2dfx(ox, oy))); }