Home
last modified time | relevance | path

Searched refs:when (Results 1 – 25 of 8601) sorted by relevance

12345678910>>...345

/external/strace/tests/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-m32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-mx32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/mockito/src/test/java/org/mockitousage/matchers/
DMatchersTest.java61 import static org.mockito.Mockito.when;
70 when(mock.oneArg(and(eq(false), eq(false)))).thenReturn("0"); in and_overloaded()
71 when(mock.oneArg(and(eq((byte) 1), eq((byte) 1)))).thenReturn("1"); in and_overloaded()
72 when(mock.oneArg(and(eq('a'), eq('a')))).thenReturn("2"); in and_overloaded()
73 when(mock.oneArg(and(eq(1D), eq(1D)))).thenReturn("3"); in and_overloaded()
74 when(mock.oneArg(and(eq(1F), eq(1F)))).thenReturn("4"); in and_overloaded()
75 when(mock.oneArg(and(eq(1), eq(1)))).thenReturn("5"); in and_overloaded()
76 when(mock.oneArg(and(eq(1L), eq(1L)))).thenReturn("6"); in and_overloaded()
77 when(mock.oneArg(and(eq((short) 1), eq((short) 1)))).thenReturn("7"); in and_overloaded()
78 when(mock.oneArg(and(contains("a"), contains("d")))).thenReturn("8"); in and_overloaded()
[all …]
DAnyXMatchersAcceptNullsTest.java15 import static org.mockito.Mockito.when;
29 when(mock.oneArg((Object) any())).thenReturn("matched"); in shouldAcceptNullsInAnyMatcher()
36 when(mock.oneArg((Object) anyObject())).thenReturn("matched"); in shouldAcceptNullsInAnyObjectMatcher()
43 when(mock.oneArg(anyString())).thenReturn("0"); in shouldNotAcceptNullInAnyXMatchers()
44 when(mock.forList(anyListOf(String.class))).thenReturn("1"); in shouldNotAcceptNullInAnyXMatchers()
45 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("2"); in shouldNotAcceptNullInAnyXMatchers()
46 when(mock.forCollection(anyCollectionOf(String.class))).thenReturn("3"); in shouldNotAcceptNullInAnyXMatchers()
47 when(mock.forSet(anySetOf(String.class))).thenReturn("4"); in shouldNotAcceptNullInAnyXMatchers()
59 when(mock.forInteger(anyInt())).thenReturn("0"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
60 when(mock.forCharacter(anyChar())).thenReturn("1"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
[all …]
/external/llvm-project/libcxx/utils/libcxx/test/
Dfeatures.py20 when=lambda cfg: hasCompileFlag(cfg, '-fcoroutines-ts') and
25 when=lambda cfg: hasCompileFlag(cfg, '-Werror=thread-safety'),
29 when=lambda cfg: hasCompileFlag(cfg, '-Wuser-defined-warnings'),
32 Feature(name='has-fblocks', when=lambda cfg: hasCompileFlag(cfg, '-fblocks')),
33 …Feature(name='-fsized-deallocation', when=lambda cfg: hasCompileFlag(cfg, '-fsized-deallo…
34 …Feature(name='-faligned-allocation', when=lambda cfg: hasCompileFlag(cfg, '-faligned-allo…
35 …Feature(name='fdelayed-template-parsing', when=lambda cfg: hasCompileFlag(cfg, '-fdelayed-temp…
36 …Feature(name='libcpp-no-if-constexpr', when=lambda cfg: '__cpp_if_constexpr' not in feature…
37 …Feature(name='libcpp-no-structured-bindings', when=lambda cfg: '__cpp_structured_bindings' not in …
38 …Feature(name='libcpp-no-deduction-guides', when=lambda cfg: featureTestMacros(cfg).get('__cpp_d…
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DSdkPickerTest.java6 import static org.mockito.Mockito.when;
31 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
38 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
39 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
40 when(usesSdk.getMaxSdkVersion()).thenReturn(23); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
47 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
48 when(usesSdk.getMinSdkVersion()).thenReturn(1); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
49 when(usesSdk.getMaxSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
57 when(usesSdk.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
58 when(usesSdk.getMinSdkVersion()).thenReturn(19); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java5 import static org.mockito.Mockito.when;
59 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
60 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
63 when(mockTestDir.toString()).thenReturn(JAR_PATH_ON_UNIX); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
64 when(mockTestDir.getName()).thenReturn(DRAWABLE_DIR); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
65 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
66 when(mockTestDir.isDirectory()).thenReturn(true); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
68 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
82 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
83 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java18 import static org.mockito.Mockito.when;
56 when(mock.add("")).thenThrow(new ExceptionOne()); in throws_same_exception_consecutively()
77 doThrow(new ExceptionOne()).when(mock).clear(); in throws_same_exception_consecutively_with_doThrow()
99 when(mock.add("throw")).thenThrow(expected); in shouldStubWithThrowable()
109 doThrow(expected).when(mock).clear(); in shouldSetThrowableToVoidMethod()
119 doThrow(new ExceptionOne()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
120 doThrow(new ExceptionTwo()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
129 when(mock.size()).thenThrow(new ExceptionOne()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
133 when(mock.size()).thenThrow(new ExceptionTwo()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
141 when(reader.read()).thenThrow(ioException); in shouldAllowSettingCheckedException()
[all …]
DStubbingUsingDoReturnTest.java37 doReturn("foo").when(mock).simpleMethod(); in should_stub()
38 doReturn("bar").when(mock).simpleMethod(); in should_stub()
45 doReturn("foo").when(mock).simpleMethod("foo"); in should_stub_with_args()
46 doReturn("bar").when(mock).simpleMethod(eq("one"), anyInt()); in should_stub_with_args()
57 doThrow(new FooRuntimeException()).when(mock).voidMethod(); in should_stub_with_throwable()
66 doThrow(new IOException()).when(mock).throwsIOException(0); in should_allow_setting_valid_checked_exception()
79 doThrow(new FooCheckedException()).when(mock).throwsIOException(0); in should_detect_invalid_checked_exception()
89 doReturn("foo").when(mock).voidMethod(); in should_scream_when_return_set_for_void()
101 doReturn("foo").when("foo").toString(); in should_scream_when_not_a_mock_passed()
111 doReturn("foo").when((Object) null).toString(); in should_scream_when_null_passed()
[all …]
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java23 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
24 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
25 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
26 … doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
27 …doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(IMethods.class)).obj… in no_warnings_for_most_common_api()
28 … doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
31 … doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
33 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectReaderValueOfWithValueTypeTest.java19 import static org.mockito.Mockito.when;
43 when(objectReader.readValue((String) any())).thenReturn(pojo); in testValueOfStringWithValueType()
44 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfStringWithValueType()
45 when(objectReader.readValue((String) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfStringWithValueType()
58 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfByteArrayWithValueType()
59 when(objectReader.readValue((byte[]) any())).thenReturn(pojo); in testValueOfByteArrayWithValueType()
60 when(objectReader.readValue((byte[]) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfByteArrayWithValueType()
72 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfDataInputWithValueType()
73 when(objectReader.readValue((DataInput) any())).thenReturn(pojo); in testValueOfDataInputWithValueType()
74 when(objectReader.readValue((DataInput) any(), (Class<?>) any())).thenCallRealMethod(); in testValueOfDataInputWithValueType()
[all …]
/external/volley/src/test/java/com/android/volley/toolbox/
DAdaptedHttpStackTest.java6 import static org.mockito.Mockito.when;
47 when(mHttpResponse.getStatusLine()).thenReturn(mStatusLine); in setUp()
52 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)) in requestTimeout()
60 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in emptyResponse()
61 when(mStatusLine.getStatusCode()).thenReturn(12345); in emptyResponse()
62 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in emptyResponse()
74 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in nonEmptyResponse()
75 when(mStatusLine.getStatusCode()).thenReturn(12345); in nonEmptyResponse()
76 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in nonEmptyResponse()
77 when(mHttpResponse.getEntity()).thenReturn(mHttpEntity); in nonEmptyResponse()
[all …]
DAndroidAuthenticatorTest.java21 import static org.mockito.Mockito.when;
55 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in failedGetAuthToken()
57 when(mFuture.getResult()).thenThrow(new AuthenticatorException("sadness!")); in failedGetAuthToken()
66 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in resultContainsIntent()
68 when(mFuture.getResult()).thenReturn(bundle); in resultContainsIntent()
69 when(mFuture.isDone()).thenReturn(true); in resultContainsIntent()
70 when(mFuture.isCancelled()).thenReturn(false); in resultContainsIntent()
77 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)) in missingAuthToken()
79 when(mFuture.getResult()).thenReturn(bundle); in missingAuthToken()
80 when(mFuture.isDone()).thenReturn(true); in missingAuthToken()
[all …]
/external/mockito/src/test/java/org/mockitousage/internal/junit/
DUnusedStubbingsFinderTest.java20 import static org.mockito.Mockito.when;
54 when(mock1.simpleMethod()).thenReturn("1"); in no_unused_stubbings()
65 when(mock1.simpleMethod()).thenReturn("1"); in unused_stubbings()
74 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings()
75 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings()
76 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings()
91 when(mock1.simpleMethod(1)).thenReturn("1"); in unused_and_lenient_stubbings()
92 when(mock1.simpleMethod(2)).thenReturn("2"); in unused_and_lenient_stubbings()
93 lenient().when(mock2.simpleMethod(3)).thenReturn("3"); in unused_and_lenient_stubbings()
108 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings_by_location()
[all …]
/external/dagger2/javatests/dagger/producers/monitoring/
DTimingRecordersTest.java26 import static org.mockito.Mockito.when;
77 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))).thenReturn(null); in singleRecorder_nullProductionComponentTimingRecorder()
87 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_throwingProductionComponentTimingRecorderFactory()
98 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_nullProducerTimingRecorder()
100 when(mockProductionComponentTimingRecorder.producerTimingRecorderFor( in singleRecorder_nullProducerTimingRecorder()
113 when(mockProductionComponentTimingRecorderFactory.create(any(Object.class))) in singleRecorder_throwingProductionComponentTimingRecorder()
115 when(mockProductionComponentTimingRecorder.producerTimingRecorderFor( in singleRecorder_throwingProductionComponentTimingRecorder()
167 .when(mockProducerTimingRecorder) in singleRecorder_throwingProducerTimingRecorderSuccess()
170 .when(mockProducerTimingRecorder) in singleRecorder_throwingProducerTimingRecorderSuccess()
189 when(mockProductionComponentTimingRecorderFactoryA.create(any(Object.class))).thenReturn(null); in multipleRecorders_nullProductionComponentTimingRecorders()
[all …]
/external/dagger2/javatests/dagger/producers/monitoring/internal/
DMonitorsTest.java25 import static org.mockito.Mockito.when;
69 when(mockProductionComponentMonitorFactory.create(any(Object.class))).thenReturn(null); in singleMonitor_nullProductionComponentMonitor()
79 .when(mockProductionComponentMonitorFactory) in singleMonitor_throwingProductionComponentMonitorFactory()
89 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_nullProducerMonitor()
91 when(mockProductionComponentMonitor.producerMonitorFor(nullable(ProducerToken.class))) in singleMonitor_nullProducerMonitor()
103 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_throwingProductionComponentMonitor()
106 .when(mockProductionComponentMonitor) in singleMonitor_throwingProductionComponentMonitor()
165 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).requested(); in singleMonitor_throwingProducerMonitorSuccess()
166 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodStarting(); in singleMonitor_throwingProducerMonitorSuccess()
167 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodFinished(); in singleMonitor_throwingProducerMonitorSuccess()
[all …]
/external/rust/crates/tokio/src/time/driver/wheel/
Dmod.rs95 let when = item.sync_when(); in insert() localVariable
97 if when <= self.elapsed { in insert()
102 let level = self.level_for(when); in insert()
115 Ok(when) in insert()
121 let when = item.as_ref().cached_when(); in remove() localVariable
122 if when == u64::max_value() { in remove()
126 self.elapsed <= when, in remove()
129 when in remove()
132 let level = self.level_for(when); in remove()
266 fn set_elapsed(&mut self, when: u64) { in set_elapsed()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/
DNameLogicDisambiguationTest.java20 import static org.mockito.Mockito.when;
130 when(mockedFieldA.isStatic()).thenReturn(true); in ambiguousNameToSingleStaticImportDeclaration()
131 when(mockedFieldA.getName()).thenReturn("a"); in ambiguousNameToSingleStaticImportDeclaration()
132 when(mockedC.getAllFields()).thenReturn(Arrays.asList(mockedFieldA)); in ambiguousNameToSingleStaticImportDeclaration()
146 when(mockedFieldA.isStatic()).thenReturn(true); in ambiguousNameToStaticImportOnDemandDeclaration()
147 when(mockedFieldA.getName()).thenReturn("a"); in ambiguousNameToStaticImportOnDemandDeclaration()
148 when(mockedC.getAllFields()).thenReturn(Arrays.asList(mockedFieldA)); in ambiguousNameToStaticImportOnDemandDeclaration()
214 when(mockedC.asReferenceType()).thenReturn(mockedC); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToField()
215 when(mockedC.getAllMethods()).thenReturn(Collections.emptySet()); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToField()
216 when(mockedFieldC.isStatic()).thenReturn(true); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToField()
[all …]
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java25 import static org.mockito.Mockito.when;
47 when(mockClassLoader.getParent()).thenReturn(fakeParent); in mockFinalJavaMethod()
59 when(mockAttributes.getColorMode()).thenReturn(42); in mockFinalAndroidFrameworkClass()
72 when(mockService.onBind(any(Intent.class))).thenReturn(fakeBinder); in mockFinalMethodOfAndroidFrameworkClass()
91 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorClass()
105 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorInterface()
147 when(mockedSuper.returnA()).thenReturn("fakeA"); in mockSubClass()
148 when(mockedSuper.returnB()).thenReturn("fakeB"); in mockSubClass()
149 when(mockedSuper.returnC()).thenReturn("fakeC"); in mockSubClass()
162 when(mocked.returnA()).thenReturn("fake2A"); in mockSubClass()
[all …]
/external/icu/icu4c/source/samples/date/
Ddate.c52 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, const cha…
82 UDate when; in main() local
173 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main()
179 date(when, tz, style, format, locale, &status); in main()
253 date(UDate when, in date() argument
269 printf("%.0f\n", when); in date()
272 printf("%.3f\n", when/1000.0); in date()
282 len = udat_format(fmt, when, 0, len, 0, status); in date()
287 udat_format(fmt, when, s, len + 1, 0, status); in date()
310 UDate when=0; in getWhen() local
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DMockSessionBuilder.java20 import static org.mockito.Mockito.when;
77 when(session.getId()).thenReturn(id); in build()
78 when(session.isValid()).thenReturn(valid); in build()
79 when(session.isSingleUse()).thenReturn(singleUse); in build()
80 when(session.getProtocol()).thenReturn(TestUtils.getProtocols()[0]); in build()
81 when(session.getPeerHost()).thenReturn(host); in build()
82 when(session.getPeerPort()).thenReturn(port); in build()
83 when(session.getCipherSuite()).thenReturn(cipherSuite); in build()
84 when(session.toBytes()).thenReturn(encodedBytes); in build()
85 when(session.toSSLSession()).thenReturn(mock(SSLSession.class)); in build()

12345678910>>...345