Home
last modified time | relevance | path

Searched refs:InvalidUseOfMatchersException (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/matchers/
DInvalidUseOfMatchersTest.java15 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
37 } catch (InvalidUseOfMatchersException e) { in should_detect_wrong_number_of_matchers_when_stubbing()
52 } catch (InvalidUseOfMatchersException e) { in should_detect_stupid_use_of_matchers_when_verifying()
70 } catch (InvalidUseOfMatchersException e) { in should_scream_when_no_matchers_inside_not()
82 } catch (InvalidUseOfMatchersException e) { in should_scream_when_not_enough_matchers_inside_or_AddtionalMatcher()
95 } catch (InvalidUseOfMatchersException e) { in should_scream_when_Matchers_count_dont_match_parameter_count()
115 …sertThat(run.getFailures().get(1).getException()).isInstanceOf(InvalidUseOfMatchersException.class) in should_mention_matcher_when_misuse_detected()
/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java12 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
124 detectsAndCleansUp(new OnVerify(), InvalidUseOfMatchersException.class); in shouldDetectMisplacedArgumentMatcher()
127 detectsAndCleansUp(new OnVerifyInOrder(), InvalidUseOfMatchersException.class); in shouldDetectMisplacedArgumentMatcher()
130 detectsAndCleansUp(new OnVerifyZeroInteractions(), InvalidUseOfMatchersException.class); in shouldDetectMisplacedArgumentMatcher()
133 detectsAndCleansUp(new OnVerifyNoMoreInteractions(), InvalidUseOfMatchersException.class); in shouldDetectMisplacedArgumentMatcher()
136 detectsAndCleansUp(new OnDoAnswer(), InvalidUseOfMatchersException.class); in shouldDetectMisplacedArgumentMatcher()
/external/mockito/src/main/java/org/mockito/exceptions/misusing/
DInvalidUseOfMatchersException.java10 public class InvalidUseOfMatchersException extends MockitoException { class
14 public InvalidUseOfMatchersException(String message) { in InvalidUseOfMatchersException() method in InvalidUseOfMatchersException
18 public InvalidUseOfMatchersException() { in InvalidUseOfMatchersException() method in InvalidUseOfMatchersException
/external/mockito/src/test/java/org/mockitousage/misuse/
DDetectingMisusedMatchersTest.java11 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
59 } catch (InvalidUseOfMatchersException e) { in should_fail_fast_when_argument_matchers_are_abused()
77 } catch (InvalidUseOfMatchersException e) { in should_report_argument_locations_when_argument_matchers_misused()
DExplicitFrameworkValidationTest.java11 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
52 } catch (InvalidUseOfMatchersException e) {} in shouldDetectMisplacedArgumentMatcher()
/external/mockito/src/test/java/org/mockito/
DArgumentCaptorTest.java9 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
23 } catch (InvalidUseOfMatchersException ignore) { in tearDown()
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerImplTest.java10 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
51 throw new InvalidUseOfMatchersException(); in should_remove_verification_mode_even_when_invalid_matchers()
61 } catch (InvalidUseOfMatchersException ignored) { in should_remove_verification_mode_even_when_invalid_matchers()
/external/mockito/src/test/java/org/mockitousage/stacktrace/
DClickableStackTracesWhenFrameworkMisusedTest.java11 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
40 } catch (InvalidUseOfMatchersException e) { in shouldPointOutMisplacedMatcher()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java241 return new InvalidUseOfMatchersException(join( in invalidUseOfMatchers()
260 return new InvalidUseOfMatchersException(join( in incorrectUseOfAdditionalMatchers()
288 return new InvalidUseOfMatchersException(join( in reportNoSubMatchersFound()
526 return new InvalidUseOfMatchersException(join( in misplacedArgumentMatcher()