Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for setContext (0.07 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/test/java/jcifs/SmbTransportTest.java

            // Arrange
            when(smbTransport.getContext()).thenReturn(cifsContext);
    
            // Act
            CIFSContext result = smbTransport.getContext();
    
            // Assert
            assertNotNull(result, "Context should not be null");
            assertEquals(cifsContext, result, "Returned context should be the mocked context");
            verify(smbTransport).getContext(); // Verify that the method was called
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

        }
    
        @Override
        public int getInflightRequests() {
            return delegate.getInflightRequests();
        }
    
        @Override
        public CIFSContext getContext() {
            return delegate.getContext();
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public <T extends SmbTransport> T unwrap(Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeImplTest.java

        private SmbTransportImpl transport;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            when(session.getConfig()).thenReturn(config);
            when(session.getContext()).thenReturn(context);
            when(session.getTransport()).thenReturn(transport);
            when(session.acquire()).thenReturn(session);
            when(config.isTraceResourceUsage()).thenReturn(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                // Check if we can use directory leasing
                DirectoryLeaseManager dirManager = getDirectoryLeaseManager(th);
                if (dirManager != null && smbFile.getContext().getConfig().isUseDirectoryLeasing()) {
                    return listFilesWithDirectoryLeasing(smbFile, dirManager);
                } else {
                    // Fall back to regular directory listing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/HandlerTest.java

            // Assert
            assertTrue(conn instanceof SmbFile);
            SmbFile file = (SmbFile) conn;
            assertNotNull(file.getContext(), "Context must be non-null");
            assertSame(SingletonContext.getInstance(), file.getContext(), "Should use SingletonContext when none provided");
        }
    
        @Test
        @DisplayName("parseURL: exact 'smb://' sets default port")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbSession.java

        <T extends SmbSession> T unwrap(Class<T> type);
    
        /**
         * Returns the CIFS context that this session is attached to.
         *
         * @return the context this session is attached to
         */
        CIFSContext getContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbTransport.java

    public interface SmbTransport extends AutoCloseable {
    
        /**
         * Gets the CIFS context associated with this transport.
         *
         * @return the context this transport is attached to
         */
        CIFSContext getContext();
    
        /**
         * Unwraps the transport to the specified type.
         *
         * @param <T> the type to unwrap to
         * @param type the class of the transport type to unwrap
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ExtractData.java

         */
        public String getContent() {
            return content;
        }
    
        /**
         * Sets the extracted content.
         *
         * @param content the content to set
         */
        public void setContent(final String content) {
            this.content = content;
        }
    
        /**
         * Returns a string representation of this object.
         * @return A string representation.
         */
        @Override
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top