PlaceObjectsInEnumAction extends ContextAwareAction { @Override public boolean isEnabled() { if (selectedManifestations.isEmpty()){ return false; } for (View m : selectedManifestations){ if (m.getManifestedComponent().getCapability(FeedProvider.class) == null){ return false; } } return true; } PlaceObjectsInEnumAction(); @Override void actionPerformed(ActionEvent e); @Override boolean canHandle(ActionContext context); @Override boolean isEnabled();  }
@Test (dependsOnMethods = {"testCanHandle"}) public void testIsEnabled() { Assert.assertTrue(action.isEnabled()); }