Home
last modified time | relevance | path

Searched refs:Strictness (Results 1 – 25 of 47) sorted by relevance

12

/external/mockito/src/main/java/org/mockito/internal/junit/
DDefaultStubbingLookupListener.java12 import org.mockito.quality.Strictness;
27 private Strictness currentStrictness;
30 DefaultStubbingLookupListener(Strictness strictness) { in DefaultStubbingLookupListener()
35Strictness actualStrictness = determineStrictness(event.getStubbingFound(), event.getMockSettings(… in onStubbingLookup()
37 if (actualStrictness != Strictness.STRICT_STUBS) { in onStubbingLookup()
70 void setCurrentStrictness(Strictness currentStrictness) { in setCurrentStrictness()
DJUnitRule.java13 import org.mockito.quality.Strictness;
22 private Strictness strictness;
28 public JUnitRule(MockitoLogger logger, Strictness strictness) { in JUnitRule()
62 return strictness(Strictness.LENIENT);
65 public MockitoRule strictness(Strictness strictness) {
DUniversalTestListener.java10 import org.mockito.quality.Strictness;
23 private Strictness currentStrictness;
29 public UniversalTestListener(Strictness initialStrictness, MockitoLogger logger) { in UniversalTestListener()
84 public void setStrictness(Strictness strictness) { in setStrictness()
DStrictStubsRunnerTestListener.java9 import org.mockito.quality.Strictness;
16 …LookupListener stubbingLookupListener = new DefaultStubbingLookupListener(Strictness.STRICT_STUBS);
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStrictnessSelector.java8 import org.mockito.quality.Strictness;
28 …public static Strictness determineStrictness(Stubbing stubbing, MockCreationSettings mockSettings,… in determineStrictness()
34 return Strictness.LENIENT; in determineStrictness()
DInvocationContainerImpl.java15 import org.mockito.quality.Strictness;
35 private final Strictness mockStrictness;
41 this.mockStrictness = mockSettings.isLenient() ? Strictness.LENIENT : null; in InvocationContainerImpl()
54 public void addAnswer(Answer answer, Strictness stubbingStrictness) { in addAnswer()
66 …public StubbedInvocationMatcher addAnswer(Answer answer, boolean isConsecutive, Strictness stubbin… in addAnswer()
77Strictness effectiveStrictness = stubbingStrictness != null ? stubbingStrictness : this.mockStrict… in addAnswer()
106 public void setAnswersForStubbing(List<Answer<?>> answers, Strictness strictness) { in setAnswersForStubbing()
DDoAnswerStyleStubbing.java7 import org.mockito.quality.Strictness;
20 private Strictness stubbingStrictness;
22 void setAnswers(List<Answer<?>> answers, Strictness stubbingStrictness) { in setAnswers()
40 Strictness getStubbingStrictness() { in getStubbingStrictness()
DStubbedInvocationMatcher.java11 import org.mockito.quality.Strictness;
24 private final Strictness strictness;
27 …public StubbedInvocationMatcher(Answer answer, MatchableInvocation invocation, Strictness strictne… in StubbedInvocationMatcher()
60 public Strictness getStrictness() { in getStrictness()
DOngoingStubbingImpl.java8 import org.mockito.quality.Strictness;
19 private Strictness strictness;
51 public void setStrictness(Strictness strictness) { in setStrictness()
DDefaultLenientStubber.java8 import org.mockito.quality.Strictness;
61 ongoingStubbing.setStrictness(Strictness.LENIENT); in when()
66 return MOCKITO_CORE.stubber(Strictness.LENIENT); in stubber()
DUnusedStubbingReporting.java7 import org.mockito.quality.Strictness;
20 return !stubbing.wasUsed() && stubbing.getStrictness() != Strictness.LENIENT; in shouldBeReported()
DStubberImpl.java11 import org.mockito.quality.Strictness;
28 private final Strictness strictness;
30 public StubberImpl(Strictness strictness) { in StubberImpl()
/external/mockito/src/test/java/org/mockitousage/junitrule/
DMutableStrictJUnitRuleTest.java14 import org.mockito.quality.Strictness;
45 @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/mockito/src/main/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilder.java11 import org.mockito.quality.Strictness;
24 private Strictness strictness;
52 public MockitoSessionBuilder strictness(Strictness strictness) { in strictness()
76Strictness effectiveStrictness = this.strictness == null ? Strictness.STRICT_STUBS : this.strictne… in startMocking()
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessWhenRuleStrictnessIsUpdatedTest.java15 import org.mockito.quality.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()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStrictStubbingEndToEndTest.java18 import org.mockito.quality.Strictness;
83 …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/internal/framework/
DDefaultMockitoSession.java15 import org.mockito.quality.Strictness;
25 …public DefaultMockitoSession(List<Object> testClassInstances, String name, Strictness strictness, … in DefaultMockitoSession()
41 public void setStrictness(Strictness strictness) { in setStrictness()
/external/clang/utils/analyzer/
DSATestBuild.py534 def runCmpResults(Dir, Strictness = 0): argument
585 if Strictness >= 2 and NumDiffs > 0:
588 elif Strictness >= 1 and ReportsInRef != ReportsInNew:
637 def testProject(ID, ProjectBuildMode, IsReferenceBuild=False, Dir=None, Strictness = 0): argument
656 runCmpResults(Dir, Strictness)
663 def testAll(IsReferenceBuild = False, UpdateSVN = False, Strictness = 0): argument
685 testProject(I[0], int(I[1]), IsReferenceBuild, None, Strictness)
712 Strictness = Args.strictness variable
719 testAll(IsReference, UpdateSVN, Strictness)
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java15 import org.mockito.quality.Strictness;
120 … MockitoSession mockito = Mockito.mockitoSession().strictness(Strictness.LENIENT).startMocking();
194 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
204 mockito.setStrictness(Strictness.LENIENT); in manual_mock_preserves_its_settings()
/external/mockito/src/main/java/org/mockito/stubbing/
DStubbing.java12 import org.mockito.quality.Strictness;
64 Strictness getStrictness(); in getStrictness()
/external/mockito/src/main/java/org/mockito/junit/
DMockitoJUnit.java11 import org.mockito.quality.Strictness;
33 return new JUnitRule(new ConsoleMockitoLogger(), Strictness.WARN); in rule()
DMockitoRule.java14 import org.mockito.quality.Strictness;
150 MockitoRule strictness(Strictness strictness); in strictness()
/external/mockito/src/test/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilderTest.java13 import org.mockito.quality.Strictness;
24 import static org.mockito.quality.Strictness.WARN;
45 … new DefaultMockitoSessionBuilder().strictness(Strictness.LENIENT).startMocking().finishMocking(); in creates_sessions()
/external/mockito/src/main/java/org/mockito/
DMockitoSession.java14 import org.mockito.quality.Strictness;
105 void setStrictness(Strictness strictness); in setStrictness()
/external/mockito/src/main/java/org/mockito/session/
DMockitoSessionBuilder.java11 import org.mockito.quality.Strictness;
97 MockitoSessionBuilder strictness(Strictness strictness); in strictness()

12