8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest
authorakolarkunnu
Tue, 15 Jan 2019 22:54:08 -0800
changeset 53666 1a1c393b5c42
parent 53665 2121afe70084
child 53667 6dae74bb8a43
8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest Reviewed-by: serb, shurailine
test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java
--- a/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java	Thu Jan 10 16:38:02 2019 +0530
+++ b/test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java	Tue Jan 15 22:54:08 2019 -0800
@@ -34,6 +34,7 @@
 import java.awt.Point;
 
 import javax.swing.ToolTipManager;
+import javax.swing.UIManager;
 
 import org.jtregext.GuiTestListener;
 import org.netbeans.jemmy.ClassReference;
@@ -75,8 +76,9 @@
      *
      * @throws Exception
      */
-    @Test
-    public void test() throws Exception {
+    @Test(dataProvider = "availableLookAndFeels", dataProviderClass = TestHelpers.class)
+    public void test(String lookAndFeel) throws Exception {
+        UIManager.setLookAndFeel(lookAndFeel);
         new ClassReference(ToolTipDemo.class.getCanonicalName()).startApplication();
         JFrameOperator frameOperator = new JFrameOperator(DEMO_TITLE);
         frameOperator.setComparator(EXACT_STRING_COMPARATOR);