- Sort Score
- Num 10 results
- Language All
Results 11 - 16 of 16 for getContext (0.06 seconds)
-
android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt
import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class) @Config( sdk = [23, 26, 30, 33, 35], ) class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() { @Before fun setContext() { // This is awkward because Robolectric won't run our initializers and we don't want test deps // https://github.com/robolectric/robolectric/issues/8461 OkHttp.initialize(ApplicationProvider.getApplicationContext())
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 16:25:39 GMT 2025 - 1.2K bytes - Click Count (0) -
cmd/server_test.go
c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) // extract the content from response body. getContent, err := io.ReadAll(response.Body) c.Assert(err, nil) // Compare putContent and getContent. c.Assert(string(getContent), putContent) } // TestGetObjectLarge11MiB - Tests validate fetching of an object of size 11MB.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 118.1K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt
import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class) @Config( sdk = [23, 26, 30, 33, 35], ) class DisabledInitialiserTest { @Before fun setContext() { // Ensure we aren't succeeding because of another test Platform.resetForTests() PlatformRegistry.applicationContext = null } @Test fun testWithoutContext() {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 16:25:39 GMT 2025 - 2.1K bytes - Click Count (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java
return location; } /** * Gets the content of this source. * * @return The underlying character stream, never {@code null}. */ public String getContent() { return content; } @Override public String toString() { return getLocation(); } @Override public int hashCode() { return hashCode; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jan 15 18:51:29 GMT 2025 - 3K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java
} return type.getNameAsString(); } private String getJavadocComment(NodeWithJavadoc<?> node) { return node.getJavadocComment().map(Comment::getContent).orElse(""); }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 19 15:07:24 GMT 2024 - 11.8K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
get() = receiverTypeReference?.text private val KtNamedDeclaration.sinceVersion: String get() = docComment?.getDefaultSection()?.findTagsByName("since")?.singleOrNull()?.getContent() ?: VERSION_NOT_FOUND
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Jun 02 09:57:54 GMT 2025 - 14.1K bytes - Click Count (0)