Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 118 for BOUNDARY (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        }
    
        @Test
        @DisplayName("size should return correct message size")
        void testSize() {
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            // size8 method rounds up to 8-byte boundary
            int expectedAlignedSize = (expectedSize + 7) & ~7;
    
            assertEquals(expectedAlignedSize, request.size());
        }
    
        @Test
        @DisplayName("writeBytesWireFormat should write correct structure")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/EncdecTest.java

            assertEquals(0x78, buffer[3] & 0xFF);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, 256, 65535, 65536, Integer.MAX_VALUE })
        @DisplayName("Should handle boundary values")
        void testBoundaryValues(int value) {
            // Given
            byte[] buffer = new byte[4];
    
            // When
            Encdec.enc_uint32le(value, buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            when(mockFile.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mockFileHandle);
    
            // Mock responses for successful writes to test boundary conditions
            when(mockTreeHandle.send(any(Smb2WriteRequest.class), any())).thenReturn(mockWriteResponse);
            when(mockWriteResponse.getCount()).thenReturn(10, 5); // Return proper byte counts
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                    assertTrue(success[i], "Thread " + i + " failed");
                }
            }
    
            @Test
            @DisplayName("Should handle boundary values for structure size")
            void testBoundaryValuesForStructureSize() {
                // Test boundary values around 4
                int[] boundaryValues = { 3, 4, 5 };
    
                for (int value : boundaryValues) {
                    byte[] buffer = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

            dstIndex += 4;
    
            // Write context name
            System.arraycopy(CONTEXT_NAME_BYTES, 0, dst, dstIndex, 4);
            dstIndex += 4;
    
            // Padding to align data to 8-byte boundary
            dstIndex += 4;
    
            // Write file ID (16 bytes)
            System.arraycopy(fileId, 0, dst, dstIndex, 16);
            dstIndex += 16;
    
            return dstIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Assertions.assertEquals(1_650_000_000_000L, info.getLastAccessTime(), "last access should match");
            Assertions.assertEquals(42L, info.getSize(), "size should match");
        }
    
        // --- Parameterized: edge and boundary values across getters ---
        @ParameterizedTest(name = "attributes={0}, c={1}, w={2}, a={3}, size={4}")
        @MethodSource("valueProvider")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

     * methods (writing parameters and handling empty wire formats) and an
     * informative {@link NtTransQuerySecurityDesc#toString()}. The tests
     * exercise normal behaviour, boundary values, and the interaction with
     * the underlying wire‑format helpers.
     */
    @ExtendWith(MockitoExtension.class)
    class NtTransQuerySecurityDescTest {
    
        /**
         * Helper that mimics the write logic used by
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/main/webapp/js/bootstrap.min.js

    p()?"top-start":"top-end",Lt=p()?"bottom-end":"bottom-start",Ot=p()?"bottom-start":"bottom-end",It=p()?"left-start":"right-start",Dt=p()?"right-start":"left-start",Nt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class xt extends W{constructor(t,e){s...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Jan 12 06:14:02 UTC 2025
    - 58.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/HexdumpTest.java

            assertEquals("12345678", Hexdump.toHexString(0x12345678L, 8));
        }
    
        @Test
        @DisplayName("Should handle special byte values correctly")
        void testSpecialByteValues() {
            // Test boundary values
            byte[] data = { (byte) 0x00, // min value
                    (byte) 0xFF, // max value (-1 as signed byte)
                    (byte) 0x7F, // max positive
                    (byte) 0x80 // min negative
            };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

                assertNotNull(rapidProvider);
            }
        }
    
        // Test boundary conditions for time adjustments
        public void test_boundaryTimeAdjustments() {
            // Test zero boundary
            testBoundaryValue(0L);
    
            // Test one millisecond boundaries
            testBoundaryValue(1L);
            testBoundaryValue(-1L);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.4K bytes
    - Viewed (0)
Back to top