Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 863 for verifyCn (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            failover.handleFailure(failedChannel, error);
    
            // Verify pending operations were cleared from failed channel
            assertEquals(0, failedChannel.getRequestsPending());
    
            // Verify alternative channel was selected and operation added
            verify(mockLoadBalancer).selectChannel(mockOperation);
            verify(alternativeChannel).addPendingOperation(mockOperation);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacConstantsTest.java

         * This prevents accidental modification of these critical constants.
         */
        @Test
        void testConstantValues() {
            // Verify the PAC version
            assertEquals(0, PacConstants.PAC_VERSION, "PAC_VERSION should be 0");
    
            // Verify PAC buffer types
            assertEquals(1, PacConstants.LOGON_INFO, "LOGON_INFO should be 1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            // Verify that the super constructor was called with the correct arguments
            // Note: Mockito cannot directly verify super constructor calls.
            // We assume if the object is created, the super constructor was called.
            // We can verify the state of the object after construction.
    
            // Verify ptype and flags are set correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            // Verify bytes written
            assertTrue(bytesWritten > 0);
            assertEquals(19, bytesWritten); // 2 + 13 + 2 + 2
    
            // Verify NET_SHARE_ENUM command (2 bytes)
            assertEquals(SmbComTransaction.NET_SHARE_ENUM, dst[0]);
            assertEquals(0, dst[1]);
    
            // Verify descriptor (WrLeh\0B13BWz\0 in ASCII - 13 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/AllocInfoTest.java

                // Verify that AllocInfo extends FileSystemInformation
                assertTrue(FileSystemInformation.class.isAssignableFrom(AllocInfo.class));
            }
    
            @Test
            @DisplayName("Should implement Decodable interface through FileSystemInformation")
            void shouldImplementDecodableInterface() {
                // Verify that AllocInfo indirectly implements Decodable
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
       * returns the expected data.
       *
       * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the
       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NameQueryRequestTest.java

            doReturn(10).when((NameServicePacket) request).writeQuestionSectionWireFormat(any(byte[].class), anyInt());
    
            int result = request.writeBodyWireFormat(dst, dstIndex);
    
            // Verify that writeQuestionSectionWireFormat was called
            verify((NameServicePacket) request, times(1)).writeQuestionSectionWireFormat(dst, dstIndex);
            assertEquals(10, result);
        }
    
        @Test
        void testReadBodyWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/CredentialsInternalTest.java

            assertFalse(ctx.isEstablished(), "stub context initially not established");
    
            // Verify interactions with dependency are meaningful and ordered
            InOrder order = inOrder(mockContext);
            order.verify(mockContext, times(1)).getConfig();
            order.verify(mockContext, times(1)).getCredentials();
            verifyNoMoreInteractions(mockContext);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.Credentials;
    
    /**
     * Security-focused test cases for SmbSessionImpl to verify race condition fixes.
     */
    public class SmbSessionImplSecurityTest {
    
        private CIFSContext mockContext;
        private SmbTransportImpl mockTransport;
        private Configuration mockConfig;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            assertFalse(iterator.hasNext(), "Should not have more elements");
    
            // Then
            verify(mockDelegate, times(3)).next();
            verify(mockFilter).accept(mockResource1);
            verify(mockFilter).accept(mockResource2);
            verify(mockFilter).accept(mockResource3);
        }
    
        /**
         * Test that adapt method is actually used by the iterator.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top