use of org.junit.experimental.results.PrintableResult in project junit4 by junit-team.
the class ResultMatchersTest method hasFailureContaining_givenResultWithNoFailures.
@Test
public void hasFailureContaining_givenResultWithNoFailures() {
PrintableResult resultWithNoFailures = new PrintableResult(new ArrayList<Failure>());
assertThat(ResultMatchers.hasFailureContaining("").matches(resultWithNoFailures), is(false));
}
use of org.junit.experimental.results.PrintableResult in project junit4 by junit-team.
the class WithUnresolvedGenericTypeVariablesOnTheoryParms method whereTypeVariableIsOnArrayTypeOnTheoryParm.
@Test
public void whereTypeVariableIsOnArrayTypeOnTheoryParm() {
PrintableResult result = testResult(TypeVariableOnArrayTypeOnTheoryParm.class);
assertThat(result, hasSingleFailureContaining("unresolved type variable T"));
}
use of org.junit.experimental.results.PrintableResult in project junit4 by junit-team.
the class WithUnresolvedGenericTypeVariablesOnTheoryParms method whereTypeVariableIsOnTheoryParm.
@Test
public void whereTypeVariableIsOnTheoryParm() {
PrintableResult result = testResult(TypeVariableOnTheoryParm.class);
assertThat(result, hasSingleFailureContaining("unresolved type variable T"));
}
use of org.junit.experimental.results.PrintableResult in project junit4 by junit-team.
the class WithUnresolvedGenericTypeVariablesOnTheoryParms method whereTypeVariableIsOnWildcardUpperBoundOnTheoryParm.
@Test
public void whereTypeVariableIsOnWildcardUpperBoundOnTheoryParm() {
PrintableResult result = testResult(TypeVariableOnWildcardUpperBoundOnTheoryParm.class);
assertThat(result, hasSingleFailureContaining("unresolved type variable U"));
}
use of org.junit.experimental.results.PrintableResult in project junit4 by junit-team.
the class WithUnresolvedGenericTypeVariablesOnTheoryParms method whereTypeVariableIsOnTheoryClass.
@Test
public void whereTypeVariableIsOnTheoryClass() {
PrintableResult result = testResult(TypeVariableOnTheoryClass.class);
assertThat(result, hasSingleFailureContaining("unresolved type variable T"));
}
Aggregations