Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 1,474 for Case (0.01 sec)

  1. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                when(locator.getAddress()).thenThrow(new CIFSException("no master", new UnknownHostException("MB")));
    
                // Act + Assert: the code maps this case to SmbUnsupportedOperationException
                assertThrows(SmbUnsupportedOperationException.class, () -> SmbEnumerationUtil.doEnum(parent, "*", 0, null, null));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                assertEquals(size, mock.size());
                assertEquals(size, mock.encode(new byte[size * 2], 0));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer encoding")
            void testLargeBufferEncode() {
                byte[] largeName = new byte[1024];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * is used to verify the signature of the "www.squareup.com" certificate.
     *
     * This roles are reversed for client authentication. In that case the client has a private key and
     * a chain of certificates. The server uses a set of trusted root certificates to authenticate the
     * client. Subject alternative names are not used for client authentication.
     */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/net/InetAddresses.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.lang.Math.max;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.CharMatcher;
    import com.google.common.base.MoreObjects;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            assertEquals(SmbComTransaction.TRANS_PEEK_NAMED_PIPE, transPeekNamedPipe.getSubCommand());
        }
    
        @Test
        @DisplayName("Should handle edge case with zero FID")
        void testZeroFid() {
            // Arrange
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, 0);
            byte[] buffer = new byte[10];
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            byte[] copiedFileId = new byte[16];
            System.arraycopy(buffer, 8, copiedFileId, 0, 16);
            assertArrayEquals(newFileId, copiedFileId);
        }
    
        @Test
        @DisplayName("Test edge case with minimum buffer size")
        void testMinimumBufferSize() {
            byte[] buffer = new byte[24]; // Exact size needed
    
            int written = request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/builder/RequestDataBuilderTest.java

            assertEquals(Method.HEAD, data.getMethod());
        }
    
        public void test_methodWithStringCaseInsensitive() {
            // Test method(String) case-insensitive
            RequestData data1 = RequestDataBuilder.newRequestData().method("get").build();
            assertEquals(Method.GET, data1.getMethod());
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertArrayEquals(name.getBytes(StandardCharsets.UTF_8), mock.getName());
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer decoding")
            void testLargeBufferDecode() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameQueryResponseTest.java

        }
    
        @Test
        void toString_shouldReturnExpectedFormat_withNullAddrEntry() throws NoSuchFieldException, IllegalAccessException {
            // Set 'addrEntry' field to null for this test case
            Field addrEntryField = NameServicePacket.class.getDeclaredField("addrEntry");
            addrEntryField.setAccessible(true);
            addrEntryField.set(nameQueryResponse, null);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            if (expectEqual) {
                assertEquals(hA, hB);
                assertEquals(hA.hashCode(), hB.hashCode());
            } else {
                assertNotEquals(hA, hB);
            }
    
            // Test negative case with different tree id handles
            SmbTreeHandleImpl tC = mock(SmbTreeHandleImpl.class);
            lenient().when(tC.acquire()).thenReturn(tC);
            lenient().when(tC.getTreeId()).thenReturn(treeId + 1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top