Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 2,189 for whet (0.04 sec)

  1. src/test/java/jcifs/internal/SMBSigningDigestTest.java

    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

        @BeforeEach
        void setup() {
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockNegotiate.getServerData()).thenReturn(new ServerDataStub());
        }
    
        private void setupNegotiateStubs() {
            when(mockNegotiate.getNegotiatedCapabilities()).thenReturn(0x00123456);
            when(mockNegotiate.getNegotiatedSendBufferSize()).thenReturn(65535);
            when(mockNegotiate.getNegotiatedMpxCount()).thenReturn(65535);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/EmptyIteratorTest.java

        void testNextReturnsNull() {
            // When
            SmbResource result = emptyIterator.next();
    
            // Then
            assertNull(result, "next() should return null for empty iterator");
        }
    
        @Test
        @DisplayName("next should not throw NoSuchElementException")
        void testNextDoesNotThrowException() {
            // When & Then
            assertDoesNotThrow(() -> {
                emptyIterator.next();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            SMBUtil.writeInt2(4, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, 0);
    
            // Then
            assertEquals(4, bytesRead);
        }
    
        @Test
        @DisplayName("Should throw exception when buffer too small for reading")
        void testReadBytesWireFormatBufferTooSmall() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            context = mock(CIFSContext.class);
            when(context.getConfig()).thenReturn(config);
        }
    
        /**
         * Test method for {@link jcifs.internal.smb1.com.SmbComClose#SmbComClose(jcifs.Configuration, int, long)}.
         */
        @Test
        public void testConstructor() {
            // Given
            int fid = 123;
            long lastWriteTime = System.currentTimeMillis();
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putInt(8); // Sectors per allocation unit
                buffer.putInt(512); // Bytes per sector
                byte[] bufferArray = buffer.array();
    
                // When
                int bytesConsumed = fileFsFullSizeInfo.decode(bufferArray, 0, bufferArray.length);
    
                // Then
                assertEquals(32, bytesConsumed);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL);
            assertTrue(filter.accept(file), "Attributes match should be accepted");
            verify(file, times(1)).getAttributes();
        }
    
        @Test
        public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception {
            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testConstructorWithValidParameters() {
                // Given
                long sourceOffset = 1024L;
                long targetOffset = 2048L;
                int length = 4096;
    
                // When
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
    
                // Then
                assertNotNull(chunk);
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. tests/associations_belongs_to_test.go

    	if err := DB.Model(&user2).Association("Company").Append(&company); err != nil {
    		t.Fatalf("Error happened when append Company, got %v", err)
    	}
    
    	if company.ID == 0 {
    		t.Fatalf("Company's ID should be created")
    	}
    
    	if err := DB.Model(&user2).Association("Manager").Append(manager); err != nil {
    		t.Fatalf("Error happened when append Manager, got %v", err)
    	}
    
    	if manager.ID == 0 {
    		t.Fatalf("Manager's ID should be created")
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top