modules/graphics/src/test/java/test/javafx/css/StyleablePropertyFactory_createMethod_Test.java
Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:
*** 20,30 ****
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package javafx.css;
import javafx.beans.property.Property;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableSet;
--- 20,30 ----
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package test.javafx.css;
import javafx.beans.property.Property;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableSet;
*** 44,53 ****
--- 44,60 ----
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
+ import javafx.css.CssMetaData;
+ import javafx.css.PseudoClass;
+ import javafx.css.StyleConverter;
+ import javafx.css.Styleable;
+ import javafx.css.StyleableProperty;
+ import javafx.css.StyleablePropertyFactory;
+ import javafx.css.StyleablePropertyFactoryShim;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
*** 56,69 ****
@RunWith(Parameterized.class)
public class StyleablePropertyFactory_createMethod_Test {
@Before public void setup() {
! MyStyleable.styleablePropertyFactory.clearDataForTesting();
! MyStyleable1.styleablePropertyFactory.clearDataForTesting();
! MyStyleable2.styleablePropertyFactory.clearDataForTesting();
! MyStyleableEnum.styleablePropertyFactory.clearDataForTesting();
}
private static class Data<T> {
final String createMethodName;
final StyleConverter converter;
--- 63,76 ----
@RunWith(Parameterized.class)
public class StyleablePropertyFactory_createMethod_Test {
@Before public void setup() {
! StyleablePropertyFactoryShim.clearDataForTesting(MyStyleable.styleablePropertyFactory);
! StyleablePropertyFactoryShim.clearDataForTesting(MyStyleable1.styleablePropertyFactory);
! StyleablePropertyFactoryShim.clearDataForTesting(MyStyleable2.styleablePropertyFactory);
! StyleablePropertyFactoryShim.clearDataForTesting(MyStyleableEnum.styleablePropertyFactory);
}
private static class Data<T> {
final String createMethodName;
final StyleConverter converter;