+ // if there are no valid links the Links submenu is disabled
+ List<String> nomatchlinks = new ArrayList<String>();
+ nomatchlinks.add("NOMATCH | http://www.uniprot.org/uniprot/$"
+ + DB_ACCESSION + "$");
+
+ testee = new PopupMenu(parentPanel, (Sequence) seqs.get(0),
+ nomatchlinks);
+ seqItems = testee.sequenceMenu.getMenuComponents();
+ linkMenu = (JMenu) seqItems[6];
+ assertFalse(linkMenu.isEnabled());