changeset 54155:1a1c393b5c42

8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest Reviewed-by: serb, shurailine
author akolarkunnu
date Tue, 15 Jan 2019 22:54:08 -0800
parents 2121afe70084
children 6dae74bb8a43
files test/jdk/sanity/client/SwingSet/src/ToolTipDemoTest.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);