Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 840 for verifyCn (0.08 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/http/NtlmHttpFilterTest.java

            filter.doFilter(request, response, filterChain);
    
            verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
            verify(response).setHeader("WWW-Authenticate", "NTLM");
            verify(response).addHeader("WWW-Authenticate", "Basic realm=\"TestRealm\"");
            verify(filterChain, never()).doFilter(any(), any());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ResolverTypeTest.java

     */
    class ResolverTypeTest {
    
        /**
         * Tests that all expected enum constants exist.
         */
        @Test
        void testEnumConstants() {
            // Verify that each enum constant exists and can be referenced
            assertNotNull(ResolverType.RESOLVER_WINS, "RESOLVER_WINS should not be null.");
            assertNotNull(ResolverType.RESOLVER_BCAST, "RESOLVER_BCAST should not be null.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K 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/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/smb/JAASAuthenticatorTest.java

    import static org.junit.jupiter.api.Assertions.fail;
    import static org.mockito.Mockito.doReturn;
    import static org.mockito.Mockito.spy;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.util.HashMap;
    
    import javax.security.auth.Subject;
    import javax.security.auth.callback.Callback;
    import javax.security.auth.callback.NameCallback;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. 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)
  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/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)
  10. src/test/java/jcifs/SmbWatchHandleTest.java

            // Execute
            List<FileNotifyInformation> result = watchHandle.watch();
    
            // Verify
            assertNotNull(result);
            assertEquals(3, result.size());
            assertEquals(fileNotifyInfo1, result.get(0));
            assertEquals(fileNotifyInfo2, result.get(1));
            assertEquals(fileNotifyInfo3, result.get(2));
            verify(watchHandle, times(1)).watch();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top