Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 740 for When (0.19 sec)

  1. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

        /**
         * Notify when a directory name changes
         */
        public static final int FILE_NOTIFY_CHANGE_DIR_NAME = 0x2;
        /**
         * Notify when file attributes change
         */
        public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x4;
        /**
         * Notify when file size changes
         */
        public static final int FILE_NOTIFY_CHANGE_SIZE = 0x8;
        /**
         * Notify when last write time changes
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/UniAddressTest.java

                when(mockNbtAddress.firstCalledName()).thenReturn("NBT_NAME");
                assertEquals("NBT_NAME", uniAddress.firstCalledName());
                verify(mockNbtAddress, times(1)).firstCalledName();
            }
    
            @Test
            void shouldReturnSmbServerNameWhenInetAddressIsDotQuadIP() throws UnknownHostException {
                when(mockInetAddress.getHostName()).thenReturn("192.168.1.100");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

        void testSetFileIdInCloseRequest() {
            // Given
            Smb2CloseRequest request = new Smb2CloseRequest(mockConfig, emptyFileId);
    
            // When
            request.setFileId(testFileId);
    
            // Then - verify through internal state (would need getter or reflection in real scenario)
            // Since we can't directly verify the internal state, we create a new request to test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            when(request.getNext()).thenReturn(nextRequest);
            when(nextRequest.getNext()).thenReturn(thirdRequest);
            when(thirdRequest.getNext()).thenReturn(null);
            when(request.allowChain(nextRequest)).thenReturn(true);
            when(nextRequest.allowChain(thirdRequest)).thenReturn(true);
    
            // When
            CommonServerMessageBlockRequest second = request.getNext();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

        private void setupParentForUrlCreation() throws CIFSException {
            // Only set up parent mocks when they're actually needed for URL creation
            when(parent.getContext()).thenReturn(this.ctx);
            when(parent.getLocator()).thenReturn(parentLocator);
            // Make the parent appear as a workgroup to use the simpler URL code-path
            when(parentLocator.isWorkgroup()).thenReturn(true);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

            // Set the deferred field directly since it's a public field, not a method
            mockNdrBuffer.deferred = mockDeferredBuffer;
            lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);
            lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);
        }
    
        @Test
        void testGetSyntax() {
            String syntax = srvsvc.getSyntax();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                int result = 0;
                when(mockBuffer.dec_ndr_short()).thenReturn(4096, 4096, 10, result, 0);
                when(mockBuffer.dec_ndr_long()).thenReturn(12345);
                when(mockBuffer.dec_ndr_small()).thenReturn(1);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().when(mockBuffer.align(anyInt())).thenReturn(0);
    
                // When
                bind.decode_out(mockBuffer);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

            doAnswer(invocation -> {
                MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
                rpc.retval = 0; // Simulate success
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class));
    
            // Act
            SamrAliasHandle aliasHandle = new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid);
    
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

            void testToStringWithNullChallengeThrowsNPE() {
                UniAddress dc = mock(UniAddress.class);
                when(dc.toString()).thenReturn("ANYSERVER");
    
                NtlmChallenge nc = new NtlmChallenge(null, dc);
    
                // Hexdump.toHexString will throw NPE when accessing challenge.length
                assertThrows(NullPointerException.class, nc::toString);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/DecodableTest.java

            // Given
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            int len = 10;
            when(mockDecodable.decode(buffer, bufferIndex, len)).thenReturn(10);
    
            // When
            int decodedLength = mockDecodable.decode(buffer, bufferIndex, len);
    
            // Then
            assertEquals(10, decodedLength);
            verify(mockDecodable).decode(buffer, bufferIndex, len);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1K bytes
    - Viewed (0)
Back to top