import javax.help.HelpSetException;
import javax.help.Map;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class HelpTest
{
+
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
@Test(groups = { "Functional" })
public void checkHelpTargets() throws HelpSetException
{
for (HelpId id : HelpId.values())
{
- String target = id.toString();
+ String target = id.getId();
assertTrue("Unmatched target enum: " + target,
targets.isValidID(target, hs));
}