LayoutConstraintsDescriptor implements Bean { public static LayoutConstraintsDescriptor flexible() { return new LayoutConstraintsDescriptor(FLEXIBLE_PREF, FLEXIBLE_PREF); } private  LayoutConstraintsDescriptor(double prefWidth, double prefHeight); static LayoutConstraintsDescriptor getLayoutConstraints(double prefWidth, double prefHeight); static LayoutConstraintsDescriptor prefWidth(double prefWidth); static LayoutConstraintsDescriptor prefHeight(double prefHeight); static LayoutConstraintsDescriptor flexible(); double getPrefWidth(); void setPrefWidth(double prefWidth); double getPrefHeight(); void setPrefHeight(double prefHeight); static boolean isFlexible(double size); static boolean isPreferred(double size); @Override void addPropertyChangeListener(String propertyName, PropertyChangeListener listener); @Override void removePropertyChangeListener(String propertyName, PropertyChangeListener listener); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String PREF_WIDTH_PROPERTY_NAME; static final String PREF_HEIGHT_PROPERTY_NAME; static final double FLEXIBLE_PREF; }
@Test @Disabled public void testFlexible() { System.out.println("flexible"); LayoutConstraintsDescriptor expResult = null; LayoutConstraintsDescriptor result = LayoutConstraintsDescriptor.flexible(); assertEquals(expResult, result); fail("The test case is a prototype."); }