import javax.swing.JButton;\r
import javax.swing.JComponent;\r
import javax.swing.JLabel;\r
+import javax.swing.JOptionPane;\r
import javax.swing.JPanel;\r
import javax.swing.JTextField;\r
import javax.swing.border.TitledBorder;\r
});\r
ActionListener action = new ActionListener(){\r
public void actionPerformed(ActionEvent e){\r
- boolean flag = findClass(text.getText().trim());\r
+ String t = text.getText().trim();\r
+ boolean flag = findClass(t);\r
+ String message = Messages.getString("classpathchecker.found.tooltip");\r
if(flag){\r
label.setIcon(Utility.getIcon("classpathchecker.found.icon"));\r
- label.setToolTipText(Messages.getString("classpathchecker.found.tooltip"));\r
}\r
else{\r
label.setIcon(Utility.getIcon("classpathchecker.notfound.icon"));\r
- label.setToolTipText(Messages.getString("classpathchecker.notfound.tooltip"));\r
+ message = Messages.getString("classpathchecker.notfound.tooltip");\r
}\r
+ label.setToolTipText(message);\r
+ String dm = String.format(\r
+ "<html><body><dl><dt>%s</dt><dd>%s</dd></body></html>", t, message\r
+ );\r
+ JOptionPane.showMessageDialog(\r
+ stigmata, dm, Messages.getString("classpathchecker.dialog.title"),\r
+ JOptionPane.INFORMATION_MESSAGE\r
+ );\r
}\r
};\r
findButton.addActionListener(action);\r
\r
Birthmark birthmark = array[0].getBirthmark("smc");\r
Assert.assertEquals("smc", birthmark.getType());\r
- Assert.assertEquals(76, birthmark.getElementCount());\r
+ Assert.assertEquals(77, birthmark.getElementCount());\r
\r
BirthmarkElement[] elements = birthmark.getElements();\r
for(int i = 0; i < elements.length; i++){\r
Assert.assertEquals("java.lang.String#endsWith", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#add", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#iterator", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
Assert.assertEquals("java.net.URL#openStream", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#add", elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#size", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#toArray", elements[index++].getValue());\r
Assert.assertEquals("java.util.ArrayList#<init>", elements[index++].getValue());\r
Assert.assertEquals("java.lang.Object#getClass", elements[index++].getValue());\r
Assert.assertEquals("java.lang.Class#getName", elements[index++].getValue());\r
Assert.assertEquals("java.util.logging.Logger#getLogger", elements[index++].getValue());\r
- Assert.assertEquals("java.lang.String#valueOf", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#<init>", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
+ Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#toString", elements[index++].getValue());\r
Assert.assertEquals("java.util.logging.Logger#warning", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#size", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#toArray", elements[index++].getValue());\r
Assert.assertEquals("java.util.ArrayList#<init>", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
Assert.assertEquals("java.lang.Double#valueOf", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#add", elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.List#iterator", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
Assert.assertEquals("java.lang.Double#doubleValue", elements[index++].getValue());\r
Assert.assertEquals("java.lang.Double#doubleValue", elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("org.apache.commons.beanutils.BeanUtils#describe",\r
elements[index++].getValue());\r
Assert.assertEquals("java.util.Map#remove", elements[index++].getValue());\r
Assert.assertEquals("java.util.Map#remove", elements[index++].getValue());\r
Assert.assertEquals("java.util.Map#keySet", elements[index++].getValue());\r
Assert.assertEquals("java.util.Set#iterator", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#<init>", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
+ Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
Assert.assertEquals("java.lang.String#valueOf", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#append", elements[index++].getValue());\r
Assert.assertEquals("java.lang.StringBuilder#toString", elements[index++].getValue());\r
Assert.assertEquals("org.apache.commons.beanutils.BeanUtils#setProperty",\r
elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
Assert.assertEquals("java.io.ByteArrayInputStream#<init>", elements[index++].getValue());\r
Assert.assertEquals("java.io.ByteArrayOutputStream#<init>", elements[index++].getValue());\r
- Assert.assertEquals("java.io.ByteArrayOutputStream#write", elements[index++].getValue());\r
Assert.assertEquals("java.io.InputStream#read", elements[index++].getValue());\r
+ Assert.assertEquals("java.io.ByteArrayOutputStream#write", elements[index++].getValue());\r
Assert.assertEquals("java.io.ByteArrayOutputStream#toByteArray",\r
elements[index++].getValue());\r
Assert.assertEquals("java.io.ByteArrayOutputStream#close", elements[index++].getValue());\r
Assert.assertEquals("javax.imageio.spi.ServiceRegistry#lookupProviders",\r
elements[index++].getValue());\r
- Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
Assert.assertEquals("java.util.Iterator#hasNext", elements[index++].getValue());\r
+ Assert.assertEquals("java.util.Iterator#next", elements[index++].getValue());\r
}\r
\r
@Test\r