Package org.junit.Assume

Examples of org.junit.Assume.AssumptionViolatedException


  public static Matcher<?> IS_THREE= is(3);

  @Theory
  public void toStringIsUseful(Object actual, Matcher<?> matcher) {
    assertThat(new AssumptionViolatedException(actual, matcher).toString(),
        containsString(matcher.toString()));
  }
View Full Code Here


        containsString(matcher.toString()));
  }

  @Test
  public void AssumptionViolatedExceptionDescribesItself() {
    AssumptionViolatedException e= new AssumptionViolatedException(3, is(2));
    assertThat(StringDescription.asString(e), is("got: <3>, expected: is <2>"));
  }
View Full Code Here

TOP

Related Classes of org.junit.Assume.AssumptionViolatedException

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.