8214471: Enable different look and feel tests in SwingSet3 demo test ToolTipDemoTest
Reviewed-by: serb, shurailine
--- 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);