Home
last modified time | relevance | path

Searched refs:strictness (Results 1 – 25 of 70) sorted by relevance

123

/external/mockito/src/main/java/org/mockito/internal/junit/
DJUnitRule.java22 private Strictness strictness; field in JUnitRule
28 public JUnitRule(MockitoLogger logger, Strictness strictness) { in JUnitRule() argument
30 this.strictness = strictness; in JUnitRule()
39 .strictness(strictness) in apply()
62 return strictness(Strictness.LENIENT);
65 public MockitoRule strictness(Strictness strictness) {
66 this.strictness = strictness;
70 session.setStrictness(strictness);
DUniversalTestListener.java84 public void setStrictness(Strictness strictness) { in setStrictness() argument
85 this.currentStrictness = strictness; in setStrictness()
86 this.stubbingLookupListener.setCurrentStrictness(strictness); in setStrictness()
DDefaultStubbingLookupListener.java30 DefaultStubbingLookupListener(Strictness strictness) { in DefaultStubbingLookupListener() argument
31 this.currentStrictness = strictness; in DefaultStubbingLookupListener()
/external/mockito/src/main/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilder.java24 private Strictness strictness; field in DefaultMockitoSessionBuilder
52 public MockitoSessionBuilder strictness(Strictness strictness) { in strictness() argument
53 this.strictness = strictness; in strictness()
76 …Strictness effectiveStrictness = this.strictness == null ? Strictness.STRICT_STUBS : this.strictne… in startMocking()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DOngoingStubbingImpl.java19 private Strictness strictness; field in OngoingStubbingImpl
31 invocationContainer.addAnswer(answer, strictness); in thenAnswer()
51 public void setStrictness(Strictness strictness) { in setStrictness() argument
52 this.strictness = strictness; in setStrictness()
DStubbedInvocationMatcher.java24 private final Strictness strictness; field in StubbedInvocationMatcher
27 …ic StubbedInvocationMatcher(Answer answer, MatchableInvocation invocation, Strictness strictness) { in StubbedInvocationMatcher() argument
29 this.strictness = strictness; in StubbedInvocationMatcher()
61 return strictness; in getStrictness()
DStubberImpl.java28 private final Strictness strictness; field in StubberImpl
30 public StubberImpl(Strictness strictness) { in StubberImpl() argument
31 this.strictness = strictness; in StubberImpl()
46 MockUtil.getInvocationContainer(mock).setAnswersForStubbing(answers, strictness); in when()
DInvocationContainerImpl.java106 public void setAnswersForStubbing(List<Answer<?>> answers, Strictness strictness) { in setAnswersForStubbing() argument
107 doAnswerStyleStubbing.setAnswers(answers, strictness); in setAnswersForStubbing()
/external/mockito/src/main/java/org/mockito/internal/framework/
DDefaultMockitoSession.java25 …ockitoSession(List<Object> testClassInstances, String name, Strictness strictness, MockitoLogger l… in DefaultMockitoSession() argument
28 listener = new UniversalTestListener(strictness, logger); in DefaultMockitoSession()
41 public void setStrictness(Strictness strictness) { in setStrictness() argument
42 listener.setStrictness(strictness); in setStrictness()
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessWhenRuleStrictnessIsUpdatedTest.java6 package org.mockitousage.strictness;
27 @Rule public MockitoRule rule = MockitoJUnit.rule().strictness(Strictness.LENIENT);
32 rule.strictness(Strictness.STRICT_STUBS); in strictness_per_mock()
52 rule.strictness(Strictness.STRICT_STUBS); in strictness_per_stubbing()
DStrictnessWithRulesTest.java6 package org.mockitousage.strictness;
25 @Rule public MockitoRule rule = MockitoJUnit.rule().strictness(Strictness.STRICT_STUBS);
DStrictnessPerMockTest.java6 package org.mockitousage.strictness;
41 …mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STUBS).startMockin… in before()
DStrictnessPerStubbingTest.java6 package org.mockitousage.strictness;
38 …mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STUBS).startMockin… in before()
DStrictnessPerStubbingWithRunnerTest.java6 package org.mockitousage.strictness;
/external/mockito/src/test/java/org/mockitousage/junitrule/
DMutableStrictJUnitRuleTest.java45 @Rule public MockitoRule mockito = MockitoJUnit.rule().strictness(Strictness.LENIENT);
54 mockito.strictness(Strictness.STRICT_STUBS); in unused_stub_with_strictness()
61 @Rule public MockitoRule mockito = MockitoJUnit.rule().strictness(Strictness.STRICT_STUBS);
70 mockito.strictness(Strictness.LENIENT); in unused_stub_with_lenient()
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
DStaticMockitoSessionBuilder.java127 public StaticMockitoSessionBuilder strictness(Strictness strictness) { in strictness() argument
128 instanceSessionBuilder = instanceSessionBuilder.strictness(strictness); in strictness()
DStaticMockitoSession.java47 public void setStrictness(Strictness strictness) { in setStrictness() argument
48 instanceSession.setStrictness(strictness); in setStrictness()
/external/mockito/src/test/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilderTest.java39 …new DefaultMockitoSessionBuilder().initMocks(null, null).strictness(null).startMocking().finishMoc… in creates_sessions()
40 new DefaultMockitoSessionBuilder().strictness(null).startMocking().finishMocking(); in creates_sessions()
45 … new DefaultMockitoSessionBuilder().strictness(Strictness.LENIENT).startMocking().finishMocking(); in creates_sessions()
74 .strictness(WARN) in uses_logger_and_strictness()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStrictStubbingEndToEndTest.java83 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
97 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
111 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
151 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
/external/mockito/src/main/java/org/mockito/junit/
DMockitoRule.java150 MockitoRule strictness(Strictness strictness); in strictness() method
/external/llvm-project/clang/utils/analyzer/
DSATestBuild.py217 strictness: int = 0 variable in TestInfo
238 regenerate: bool, strictness: bool):
244 self.strictness = strictness
255 self.regenerate, self.strictness))
313 self.strictness = test_info.strictness
344 passed = run_cmp_results(project_dir, self.strictness)
763 def run_cmp_results(directory: str, strictness: int = 0) -> bool:
824 if strictness >= 2 and num_diffs > 0:
828 elif strictness >= 1 and reports_in_ref != reports_in_new:
/external/mockito/src/main/java/org/mockito/session/
DMockitoSessionBuilder.java97 MockitoSessionBuilder strictness(Strictness strictness); in strictness() method
/external/mockito/src/main/java/org/mockito/
DMockitoSession.java105 void setStrictness(Strictness strictness); in setStrictness() argument
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java120 … MockitoSession mockito = Mockito.mockitoSession().strictness(Strictness.LENIENT).startMocking();
194 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DStaticMockitoSession.java55 MockitoSession session = mockitoSession().strictness(Strictness.LENIENT) in lenientUnnecessaryStubbing()

123