Package org.junit.runner.notification

Examples of org.junit.runner.notification.Failure


  protected void runUnprotected() {
    fRunnable.run();
  };

  protected void addFailure(Throwable targetException) {
    fNotifier.fireTestFailure(new Failure(fDescription, targetException));
  }
View Full Code Here


  public void addFailure(Throwable targetException) {
    if (targetException instanceof MultipleFailureException) {
      addMultipleFailureException((MultipleFailureException) targetException);
    } else {
      fNotifier
          .fireTestFailure(new Failure(fDescription, targetException));
    }
  }
View Full Code Here

    for (Throwable each : mfe.getFailures())
      addFailure(each);
  }

  public void addFailedAssumption(AssumptionViolatedException e) {
    fNotifier.fireTestAssumptionFailed(new Failure(fDescription, e));
  }
View Full Code Here

      fNotifier.fireTestStarted(asDescription(test));
    }

    // Implement junit.framework.TestListener
    public void addError(Test test, Throwable t) {
      Failure failure= new Failure(asDescription(test), t);
      fNotifier.fireTestFailure(failure);
    }
View Full Code Here

            // last, stop the DS if we have one
            stopDS();
        }
        catch ( Exception e )
        {
            notifier.fireTestFailure(new Failure(getDescription(), e));
        }
        finally
        {
            // help GC to get rid of the directory service with all its references
            directoryService = null;
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( I18n.err( I18n.ERR_181, getTestClass().getName() ) );
            LOG.error( e.getLocalizedMessage() );
            notifier.fireTestFailure( new Failure( getDescription(), e ) );
        }
        finally
        {
            // help GC to get rid of the directory service with all its references
            suite = null;
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( I18n.err( I18n.ERR_182, method.getName() ) );
            LOG.error( "", e );
            notifier.fireTestFailure( new Failure( getDescription(), e ) );
        }
    }
View Full Code Here

            // last, stop the DS if we have one
            stopDS();
        }
        catch ( Exception e )
        {
            notifier.fireTestFailure(new Failure(getDescription(), e));
        }
    }
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( I18n.err( I18n.ERR_181, getTestClass().getName() ) );
            LOG.error( e.getLocalizedMessage() );
            notifier.fireTestFailure( new Failure( getDescription(), e ) );
        }
    }
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( I18n.err( I18n.ERR_182, method.getName() ) );
            LOG.error( "", e );
            notifier.fireTestFailure( new Failure( getDescription(), e ) );
        }
    }
View Full Code Here

TOP

Related Classes of org.junit.runner.notification.Failure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.