Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 461 - 470 of 629 for Bucket (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test that the constructor correctly initializes the type and length fields.
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
            assertEquals(SessionServicePacket.SESSION_RETARGET_RESPONSE, packet.type);
            assertEquals(6, packet.length);
        }
    
        @Test
        void writeTrailerWireFormatShouldReturnZero() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            int totalRead = packet.readWireFormat(bais, data, 0);
    
            assertEquals(14, totalRead); // 4 header + 10 trailer
            assertEquals(0x85, packet.type);
            assertEquals(10, packet.length);
        }
    
        @Test
        @DisplayName("writeHeaderWireFormat should write correct header")
        void testWriteHeaderWireFormat() {
            packet.type = SessionServicePacket.SESSION_REQUEST;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(c1.socket().isClosed).isFalse()
        assertThat(c2.socket().isClosed).isFalse()
    
        // Add a third connection
        val c3 = factory.newConnection(pool, routeC1, 75L)
    
        // The third connection bounces the first.
        assertThat(pool.closeConnections(100L)).isEqualTo(0L)
        assertThat(pool.connectionCount()).isEqualTo(2)
        assertThat(c1.socket().isClosed).isTrue()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.nameTrnId = 0x1234;
            packet.isResponse = true;
            packet.opCode = NameServicePacket.QUERY;
            packet.isAuthAnswer = true;
            packet.isTruncated = true;
            packet.isRecurDesired = true;
            packet.isRecurAvailable = true;
            packet.isBroadcast = true;
            packet.resultCode = NameServicePacket.FMT_ERR;
            packet.questionCount = 1;
            packet.answerCount = 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureExtendedTrustManager.kt

      override fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        socket: Socket,
      ) {
        if (socket.peerName() !in insecureHosts) {
          delegate.checkServerTrusted(chain, authType, socket)
        }
      }
    
      override fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        engine: SSLEngine,
      ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    if (localAddr != null) {
                        socket.bind(new InetSocketAddress(localAddr, localPort));
                    }
                    socket.connect(new InetSocketAddress(address.getHostAddress(), port), CONN_TIMEOUT);
                    socket.setSoTimeout(SO_TIMEOUT);
    
                    out = socket.getOutputStream();
                    in = socket.getInputStream();
                }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

      private fun readAndWriteFrames() {
        check(socket == null)
        val socket = serverSocket!!.accept()!!
        this.socket = socket
    
        // Bail out now if this instance was closed while waiting for the socket to accept.
        synchronized(this) {
          if (executor.isShutdown) {
            socket.close()
            return
          }
        }
        val outputStream = socket.getOutputStream()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt

        val serverSocket = ServerSocket(0, 1, localhost)
    
        val socket = Socket()
        socket.connect(serverSocket.localSocketAddress)
        val socketSource = socket.source().buffer()
    
        assertThat(socket.isHealthy(socketSource)).isTrue()
    
        serverSocket.close()
        assertThat(socket.isHealthy(socketSource)).isFalse()
      }
    
      @Test
      fun testDurationTimeUnit() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            }
            byte[] packet = new byte[totalLen];
            System.arraycopy(header, 0, packet, 0, header.length);
            System.arraycopy(body, 0, packet, SMB2_HEADER_LENGTH, body.length);
            if (ctxOffsetFromHeader != null && ctxBytes != null) {
                System.arraycopy(ctxBytes, 0, packet, ctxOffsetFromHeader, ctxBytes.length);
            }
            return packet;
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. .teamcity/src/test/kotlin/SplitBucketTest.kt

                    maxNumberInBucket = 3,
                )
    
            assertTrue(buckets.size == 5)
            assertEquals("LargeSubprojectSplit(subproject=Subproject(name=a, size=20), split=1)", buckets[0].toString())
            assertEquals("LargeSubprojectSplit(subproject=Subproject(name=b, size=19), split=1)", buckets[1].toString())
            assertEquals(
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 12 09:12:03 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top