Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setContext (0.03 sec)

  1. 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())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. 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() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsRelatedContent.java

        public String getContent() {
            checkSpecifiedProperty("content");
            return convertEmptyToNull(content);
        }
    
        public void setContent(String value) {
            registerModifiedProperty("content");
            this.content = value;
        }
    
        public String getCreatedBy() {
            checkSpecifiedProperty("createdBy");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top