1 19 20 package org.openide.explorer.view; 21 22 import junit.framework.TestCase; 23 24 29 public class TableSheetCellTest extends TestCase { 30 31 public TableSheetCellTest(String testName) { 32 super(testName); 33 } 34 35 public void testHtmlTooltipCreation() { 36 37 String text = ">\"main\" is not a known variable in current context<"; assertEquals("<html>>\"main\" is not a known variable in current context<</html>", TableSheetCell.createHtmlTooltip(text, null)); 40 41 String noHtml = "\"<html><b>ahoj</b></html>\""; assertEquals("<html>\"<html><b>ahoj</b></html>\"</html>", TableSheetCell.createHtmlTooltip(noHtml, null)); 45 46 String html = "<html><b>ahoj</b></html>"; assertEquals("<html><html><b>ahoj</b></html></html>", TableSheetCell.createHtmlTooltip(html, null)); 50 51 assertEquals("null", TableSheetCell.createHtmlTooltip(null, null)); } 54 } 55 | Popular Tags |