JAL-3438 spotless for 2.11.2.0
[jalview.git] / test / jalview / gui / JvSwingUtilsTest.java
index 22d8a9d..e6f4041 100644 (file)
@@ -87,8 +87,8 @@ public class JvSwingUtilsTest
 
     tip = "0123456789012345678901234567890123456789012345678901234567890"; // 61
     assertFalse(tip.equals(JvSwingUtils.wrapTooltip(false, tip)));
-    assertFalse(("<html>" + tip + "</html>").equals(JvSwingUtils
-            .wrapTooltip(true, tip)));
+    assertFalse(("<html>" + tip + "</html>")
+            .equals(JvSwingUtils.wrapTooltip(true, tip)));
   }
 
   /**
@@ -113,8 +113,8 @@ public class JvSwingUtilsTest
   public void testWrapTooltip_longText()
   {
     String tip = "Now is the winter of our discontent made glorious summer by this sun of York";
-    String expected = "<style> p.ttip {width: 350; text-align: left; word-wrap: break-word;}</style><p class=\"ttip\">"
-            + tip + "</p>";
+    String expected = "<style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style>"
+            + "<div class=\"ttip\">" + tip + " </div>";
     assertEquals("<html>" + expected + "</html>",
             JvSwingUtils.wrapTooltip(true, tip));
     assertEquals(expected, JvSwingUtils.wrapTooltip(false, tip));