Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,009 for verify (0.07 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            // Verify bytes written
            assertEquals(24, written);
    
            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify close flags (2 bytes at offset+2, should be 0 by default)
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
    
            // Verify Reserved (4 bytes at offset+4, should be 0)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            // Then
            assertNotNull(client, "Client should be created successfully");
            verify(mockContext, atLeastOnce()).getConfig();
        }
    
        @Test
        @DisplayName("Should handle invalid NetBIOS name quickly")
        @Timeout(value = 1, unit = TimeUnit.SECONDS) // Very short timeout
        void testGetNbtByNameInvalid() {
            // When/Then - Should fail quickly with invalid characters
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

        }
    
        @Test
        void constructor_shouldInitializeFields() throws Exception {
            // Verify configuration is set
            Field configField = NameServicePacket.class.getDeclaredField("config");
            configField.setAccessible(true);
            assertSame(mockConfig, configField.get(response));
    
            // Verify queryAddress is set
            Field queryAddressField = NodeStatusResponse.class.getDeclaredField("queryAddress");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            try (SamrPolicyHandle handle = new SamrPolicyHandle(mockHandle, server, access)) {
                assertNotNull(handle);
                // Verify that sendrecv was called with MsrpcSamrConnect4
                verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class));
                verify(mockHandle, never()).sendrecv(any(MsrpcSamrConnect2.class));
            }
        }
    
        @Test
        void testConstructor_NullServer() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            // Execute
            final SsoMessageException exception = new SsoMessageException(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
    - 10.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            // Verify constructor invoked acquire once
            verify(treeConnection, times(1)).acquire();
    
            // getConfig delegates
            when(treeConnection.getConfig()).thenReturn(config);
            assertSame(config, handle.getConfig());
            verify(treeConnection).getConfig();
    
            // isConnected delegates
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top