modules/graphics/src/test/java/test/javafx/scene/image/ImageView_verifyContains_Test.java

Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene.image;
  27 
  28 import static javafx.scene.image.ImageViewConfig.config;
  29 import static javafx.scene.image.TestImages.TEST_IMAGE_100x200;
  30 import static javafx.scene.image.TestImages.TEST_IMAGE_200x100;
  31 import static org.junit.Assert.assertEquals;
  32 
  33 import java.util.Arrays;
  34 import java.util.Collection;

  35 
  36 import org.junit.After;
  37 import org.junit.Before;
  38 import org.junit.Test;
  39 import org.junit.runner.RunWith;
  40 import org.junit.runners.Parameterized;
  41 import org.junit.runners.Parameterized.Parameters;
  42 
  43 @RunWith(Parameterized.class)
  44 public class ImageView_verifyContains_Test {
  45 
  46     private final ImageViewConfig imageViewConfig;
  47     private final float x;
  48     private final float y;
  49     private final boolean expectedContainsResult;
  50 
  51     private ImageView imageView;
  52 
  53     /*
  54      * Parameters: [image view config], [x], [y], [result]




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package test.javafx.scene.image;
  27 
  28 import static test.javafx.scene.image.ImageViewConfig.config;
  29 import static test.javafx.scene.image.TestImages.TEST_IMAGE_100x200;
  30 import static test.javafx.scene.image.TestImages.TEST_IMAGE_200x100;
  31 import static org.junit.Assert.assertEquals;
  32 
  33 import java.util.Arrays;
  34 import java.util.Collection;
  35 import javafx.scene.image.ImageView;
  36 
  37 import org.junit.After;
  38 import org.junit.Before;
  39 import org.junit.Test;
  40 import org.junit.runner.RunWith;
  41 import org.junit.runners.Parameterized;
  42 import org.junit.runners.Parameterized.Parameters;
  43 
  44 @RunWith(Parameterized.class)
  45 public class ImageView_verifyContains_Test {
  46 
  47     private final ImageViewConfig imageViewConfig;
  48     private final float x;
  49     private final float y;
  50     private final boolean expectedContainsResult;
  51 
  52     private ImageView imageView;
  53 
  54     /*
  55      * Parameters: [image view config], [x], [y], [result]