Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 878 for Verify (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                assertEquals(Integer.MAX_VALUE, request3.getContextType());
            }
    
            @Test
            @DisplayName("Should verify interface is Encodable")
            void testEncodableInterface() {
                NegotiateContextRequest request = new TestNegotiateContextRequest(1);
    
                // Verify the interface extends Encodable
                assertNotNull(request);
                assertTrue(request instanceof jcifs.Encodable);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                byte[] buffer = new byte[100];
    
                assertTrue(testBlock.verifySignature(buffer, 0, 100));
                verify(mockDigest, never()).verify(any(), anyInt(), anyInt(), anyInt(), any());
            }
    
            @Test
            @DisplayName("Test verify signature success")
            void testVerifySignatureSuccess() {
                testBlock.setDigest(mockDigest);
                testBlock.setErrorCode(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                entry.encode(mockNdrBuffer);
    
                // Then: Should encode all fields
                verify(mockNdrBuffer).align(4);
                verify(mockNdrBuffer).enc_ndr_long(1);
                verify(mockNdrBuffer).enc_ndr_short((short) 4);
                verify(mockNdrBuffer).enc_ndr_short((short) 6);
                verify(mockNdrBuffer).enc_ndr_referent(entry.name.buffer, 1);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            // Create exception with default constructor
            TransportException exception = new TransportException();
    
            // Verify the exception is created and has no message
            assertNotNull(exception);
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
    
            // Verify it's an instance of CIFSException
            assertTrue(exception instanceof CIFSException);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            // Unregister
            client.unregister(registration).get(5, TimeUnit.SECONDS);
    
            assertEquals(0, client.getActiveRegistrationCount());
    
            verify(mockRpc).register(any(WitnessRegisterRequest.class));
            verify(mockRpc).unregister(any(WitnessUnregisterRequest.class));
    
            client.close();
        }
    
        @Test
        void testGetWitnessServer() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/WinErrorTest.java

                handler.handle(WinError.WINERR_CODES[i], WinError.WINERR_MESSAGES[i]);
            }
    
            // Verify the collaborator is invoked exactly N times
            verify(handler, times(WinError.WINERR_CODES.length)).handle(anyInt(), anyString());
    
            // Capture one known interaction to verify argument integrity
            ArgumentCaptor<Integer> codeCap = ArgumentCaptor.forClass(Integer.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            // Execute
            final InvalidQueryException exception = new InvalidQueryException(messageCode, message, cause);
    
            // Verify
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
            assertEquals(messageCode, exception.getMessageCode());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // Verify bytes written (encode returns 40, which includes 4 padding bytes)
            assertEquals(40, bytesWritten);
    
            // Create a new FileBasicInfo and decode to verify encoding
            FileBasicInfo decoded = new FileBasicInfo();
            decoded.decode(buffer, startIndex, 36); // decode only reads 36 bytes
    
            // Verify the values match after round-trip
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            // Verify structure size
            assertEquals(33, buffer[Smb2Constants.SMB2_HEADER_LENGTH] | (buffer[Smb2Constants.SMB2_HEADER_LENGTH + 1] << 8));
    
            // Verify file information class
            assertEquals(Smb2QueryDirectoryRequest.FILE_ID_FULL_DIRECTORY_INFO, buffer[Smb2Constants.SMB2_HEADER_LENGTH + 2]);
    
            // Verify query flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

                mockedNtlmAuthenticator.verify(NtlmAuthenticator::getDefault);
                mockedNtlmAuthenticator.verify(
                        () -> NtlmAuthenticator.requestNtlmPasswordAuthentication(eq(mockNtlmAuthenticator), eq("locationHint"), eq(null)));
                verify(mockRenewableCredentials, never()).renew(); // Ensure renewable path was not taken
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top