Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 122 for boundary (0.05 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

    import com.google.common.testing.EqualsTester;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests CacheBuilderSpec. TODO(user): tests of a few invalid input conditions, boundary
     * conditions.
     *
     * @author Adam Winer
     */
    @NullUnmarked
    public class CacheBuilderSpecTest extends TestCase {
      public void testParse_empty() {
        CacheBuilderSpec spec = parse("");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                assertEquals(0, dst[nullTerminatorIndex]);
                assertEquals(0, dst[nullTerminatorIndex + 1]);
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Boundary Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle maximum path length")
            void testMaximumPathLength() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

                trans2.writeParametersWireFormat(buffer, 0);
            }, "Should throw IllegalArgumentException for invalid information level: " + invalidLevel);
        }
    
        @Test
        @DisplayName("Test buffer boundary conditions")
        void testBufferBoundaryConditions() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // Test with minimal buffer size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ACETest.java

                assertFalse((writeOnly & ACE.FILE_READ_DATA) != 0, "Write should not include FILE_READ_DATA");
            }
        }
    
        @Nested
        @DisplayName("Boundary Conditions and Edge Cases")
        class BoundaryConditionsTests {
    
            @Test
            @DisplayName("Should handle signed/unsigned integer boundaries")
            void shouldHandleSignedUnsignedBoundaries() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

        void testDecodeWithVariousAceCounts(int aceCount) throws SMBProtocolDecodingException {
            // This test is theoretical as we can't create huge buffers
            // but tests the boundary conditions
            if (aceCount <= 10) { // Only test small counts practically
                byte[] buffer = new byte[2048];
                prepareSecurityDescriptorBufferWithDACL(buffer, 0, aceCount);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            assertEquals(100L, crawlerContext.getAccessCount());
            assertEquals(100, crawlerContext.getRobotsTxtUrlSet().size());
            assertNotNull(crawlerContext.removeSitemaps());
        }
    
        /**
         * Test boundary values
         */
        public void test_boundaryValues() {
            // Test with maximum values
            crawlerContext.setActiveThreadCount(Integer.MAX_VALUE);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                    assertEquals(testByte, buffer[i], "Byte at position " + i + " was modified");
                }
            }
    
            @Test
            @DisplayName("Should encode at buffer boundary")
            void testEncodeAtBufferBoundary() {
                // Given
                SrvCopychunk chunk = new SrvCopychunk(111, 222, 333);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/BigIntegerMath.java

        // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
        int productBits = LongMath.log2(product, FLOOR) + 1;
        int bits = LongMath.log2(startingNumber, FLOOR) + 1;
        // Check for the next power of two boundary, to save us a CLZ operation.
        int nextPowerOfTwo = 1 << (bits - 1);
    
        // Iteratively multiply the longs as big as they can go.
        for (long num = startingNumber; num <= n; num++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                assertNotNull(result.getServer());
                // Empty components between double backslashes are handled
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Boundary Tests")
        class EdgeCasesTests {
    
            @ParameterizedTest
            @NullAndEmptySource
            @DisplayName("Should handle null and empty domains")
            void testNullAndEmptyDomains(String domain) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Should be path based on our initialization
                assertEquals("path", concretePath);
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Boundary Tests")
        class EdgeCasesTests {
    
            @ParameterizedTest
            @NullAndEmptySource
            @DisplayName("Should handle null and empty FQDN in fixupHost")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
Back to top