Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 976 for closer (0.04 sec)

  1. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/StartStopExtension.kt

        for (field in staticFields) {
          field.setAccessible(true)
          val server = field.get(null) as? MockWebServer ?: continue
    
          // Put the instance in the store, so JUnit closes it for us in afterAll.
          store.put(field, server)
    
          server.start()
        }
      }
    
      override fun beforeEach(context: ExtensionContext) {
        val testInstance = context.testInstance.get()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/LogStreamTest.java

            assertTrue(output.contains("42"));
            assertTrue(output.contains("true"));
    
            // Test close
            logStream.close();
            // After close, the stream should not accept more writes
            // but PrintStream doesn't throw exceptions on write after close
        }
    
        @Test
        void testConcurrentAccess() throws InterruptedException {
            // Test thread safety of getInstance
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
            ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

            rbc = Channels.newChannel(website.openStream());
            FileOutputStream fos = new FileOutputStream(destination);
            fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
            fos.close();
            rbc.close();
        }
    
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 4.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                      }
                    },
                  ).build()
              }
            }
          if ("close".equals(response.request.header("Connection"), ignoreCase = true) ||
            "close".equals(response.header("Connection"), ignoreCase = true)
          ) {
            exchange.noNewExchangesOnConnection()
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

                    try {
                      serverSocket.close();
                      finalizeReferentRan.set(true);
                    } catch (IOException e) {
                      throw new UncheckedIOException(e);
                    }
                  }
                }
              };
          references.add(reference);
          return myServer;
        }
    
        @Override
        public void close() throws IOException {
          serverSocket.close();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

                    try {
                      serverSocket.close();
                      finalizeReferentRan.set(true);
                    } catch (IOException e) {
                      throw new UncheckedIOException(e);
                    }
                  }
                }
              };
          references.add(reference);
          return myServer;
        }
    
        @Override
        public void close() throws IOException {
          serverSocket.close();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

                return false;
            }
        }
    
        /**
         * Get cluster name for witness discovery
         *
         * @param serverAddress the server address
         * @return cluster name or null
         */
        private String getClusterName(InetAddress serverAddress) {
            // Simple implementation - could be enhanced with proper cluster discovery
            String hostname = serverAddress.getHostName();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

        }
    
        // Test that close method exists (inherited)
        public void test_closeMethodExists() {
            // Test that close method is available (inherited from parent)
            try {
                // Just verify the method exists, don't actually call it
                crawlerEngineClient.getClass().getMethod("close");
                assertTrue(true);
            } catch (NoSuchMethodException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        }
    
        @Test
        @DisplayName("close does nothing and does not touch handle")
        void close_doesNothing() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            // constructor already calls handle.getPipe(); clear interactions to focus on close()
            clearInvocations(handle);
    
            // Act
            out.close();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top