### Question:
JavadocArchiver extends Recorder { @Override public boolean needsToRun(Result buildResult) { return buildResult.isBetterThan(Result.ABORTED); } @DataBoundConstructor  JavadocArchiver(String javadoc_dir, boolean keep_all); @Override boolean needsToRun(Result buildResult); String getJavadocDir(); boolean isKeepAll(); boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener); @Override Collection<Action> getProjectActions(AbstractProject project); BuildStepMonitor getRequiredMonitorService();  }### Answer:
@Bug(4505) @Test public void testNeedsToRunAborted(){ assertEquals(expectedResult, publisher.needsToRun(buildResult)); }