Searched refs:expectThrows (Results 1 – 9 of 9) sorted by relevance
14 import static org.testng.Assert.expectThrows;78 expectThrows(Throwable.class, nonThrowingRunnable()); in expectThrowsRequiresAnExceptionToBeThrown()84 expectThrows(Throwable.class, nonThrowingRunnable()); in expectThrowsIncludesAnInformativeDefaultMessage()96 Throwable throwable = expectThrows(Throwable.class, throwingRunnable(npe)); in expectThrowsReturnsTheSameObjectThrown()105 expectThrows(IOException.class, throwingRunnable(npe)); in expectThrowsDetectsTypeMismatchesViaExplicitTypeHint()113 expectThrows(IOException.class, throwingRunnable(npe)); in expectThrowsWrapsAndPropagatesUnexpectedExceptions()127 expectThrows(IOException.class, throwingRunnable(npe)); in expectThrowsSuppliesACoherentErrorMessageUponTypeMismatch()
76 expectThrows(() -> SimpleAnnotationMirror.of(multipleValues, values)); in extraValues()99 expectThrows(() -> SimpleAnnotationMirror.of(multipleValues)); in missingValues()105 expectThrows(() -> SimpleAnnotationMirror.of(stringElement)); in notAnAnnotation()112 private static void expectThrows(Runnable throwingRunnable) { in expectThrows() method in SimpleAnnotationMirrorTest
120 expectThrows(empty); in testRetainAll_emptyPreviouslyNonEmptyUnsupported()151 expectThrows(disjoint); in testRetainAll_disjointPreviouslyNonEmptyUnsupported()181 expectThrows(nonEmptyProperSubset); in testRetainAll_subsetUnsupported()211 expectThrows(partialOverlap); in testRetainAll_partialOverlapUnsupported()312 private void expectThrows(Target target) { in expectThrows() method in CollectionRetainAllTester
20 import static org.testng.Assert.expectThrows;122 expectThrows( in resolve_missingTitle()
966 expectThrows(throwableClass, runnable); in assertThrows()981 …public static <T extends Throwable> T expectThrows(Class<T> throwableClass, ThrowingRunnable runna… in expectThrows() method in Assert
24 import static org.testng.Assert.expectThrows;339 expectThrows( in testGenerateLinks_tooLong()
38 New: GITHUB-717: Add assertThrows and expectThrows (Ryan Schmitt)
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...