Examples of ExpectExceptionStatement


Examples of uk.co.brunella.osgi.bdt.junit.runner.statement.ExpectExceptionStatement

  private Statement possiblyExpectingExceptions(FrameworkMethod testMethod,
      Object test, Statement next) {
    @SuppressWarnings("unchecked") Class<? extends Throwable> expectedException =
      (Class<? extends Throwable>) getAnnotationValue(testMethod.getAnnotation(Test.class.getName()), "expected");
    if (expectedException != null && !expectedException.getName().equals(org.junit.Test.None.class.getName())) {
      return new ExpectExceptionStatement(next, expectedException);
    } else {
      return next;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.