@Test public void testIgnoredTest() throws Exception { doReturn("some").when(runListener).getIgnoredMessage(any(Description.class)); }
public String getIgnoredMessage(Description description) { Ignore ignore = description.getAnnotation(Ignore.class); return ignore == null || ignore.value().isEmpty() ? "Test ignored (without reason)!" : ignore.value(); }
AllureRunListener extends RunListener { public String getIgnoredMessage(Description description) { Ignore ignore = description.getAnnotation(Ignore.class); return ignore == null || ignore.value().isEmpty() ? "Test ignored (without reason)!" : ignore.value(); } }
AllureRunListener extends RunListener { public String getIgnoredMessage(Description description) { Ignore ignore = description.getAnnotation(Ignore.class); return ignore == null || ignore.value().isEmpty() ? "Test ignored (without reason)!" : ignore.value(); }  }
AllureRunListener extends RunListener { public String getIgnoredMessage(Description description) { Ignore ignore = description.getAnnotation(Ignore.class); return ignore == null || ignore.value().isEmpty() ? "Test ignored (without reason)!" : ignore.value(); }  void testSuiteStarted(Description description); @Override void testStarted(Description description); @Override void testFailure(Failure failure); @Override void testAssumptionFailure(Failure failure); @Override void testIgnored(Description description); @Override void testFinished(Description description); void testSuiteFinished(String uid); @Override void testRunFinished(Result result); String generateSuiteUid(String suiteName); String getSuiteUid(Description description); String getIgnoredMessage(Description description); void startFakeTestCase(Description description); void finishFakeTestCase(); void fireTestCaseFailure(Throwable throwable); void fireClearStepStorage(); Allure getLifecycle(); void setLifecycle(Allure lifecycle); Map<String, String> getSuites(); }
AllureRunListener extends RunListener { public String getIgnoredMessage(Description description) { Ignore ignore = description.getAnnotation(Ignore.class); return ignore == null || ignore.value().isEmpty() ? "Test ignored (without reason)!" : ignore.value(); }  void testSuiteStarted(Description description); @Override void testStarted(Description description); @Override void testFailure(Failure failure); @Override void testAssumptionFailure(Failure failure); @Override void testIgnored(Description description); @Override void testFinished(Description description); void testSuiteFinished(String uid); @Override void testRunFinished(Result result); String generateSuiteUid(String suiteName); String getSuiteUid(Description description); String getIgnoredMessage(Description description); void startFakeTestCase(Description description); void finishFakeTestCase(); void fireTestCaseFailure(Throwable throwable); void fireClearStepStorage(); Allure getLifecycle(); void setLifecycle(Allure lifecycle); Map<String, String> getSuites();  }