Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for realistic (0.07 seconds)

  1. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Prepare test data with realistic SMB3 values
            byte[] buffer = new byte[50];
            int bufferIndex = 0;
    
            // SMB3 capabilities
            int testCapabilities = 0x0000002F; // DFS, LEASING, LARGE_MTU, MULTI_CHANNEL, PERSISTENT_HANDLES, DIRECTORY_LEASING
    
            // Random but realistic GUID
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

            assertEquals("test_stackTracePresent", firstElement.getMethodName());
        }
    
        @Test
        public void test_multipleExceptionScenarios() {
            // Test multiple realistic exception scenarios
    
            // Scenario 1: Command not found
            CommandExecutionException cmdNotFound = new CommandExecutionException("Command 'xyz' not found");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertTrue(memory2 >= 0);
            // Memory usage should have changed (though we can't guarantee direction due to GC)
        }
    
        @Test
        public void test_integrationScenarios() {
            // Test realistic scenarios combining multiple methods
            String memoryLog1 = MemoryUtil.getMemoryUsageLog();
    
            // Create some objects and measure their sizes
            List<String> testData = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.SMBProtocolDecodingException;
    
    /**
     * Test class for FileBasicInfo
     */
    class FileBasicInfoTest {
    
        private FileBasicInfo fileBasicInfo;
        // Use realistic time values in milliseconds since 1970 (Unix epoch)
        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 86400000L; // 1 day ago
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            SMBUtil.writeInt4(status, hdr, 8);
            // Write Command = SMB2_IOCTL (0x000B) at offset 12
            SMBUtil.writeInt2(0x000B, hdr, 12);
            // Mark as server response to be realistic (optional)
            SMBUtil.writeInt4(0x00000001, hdr, 16); // Flags = SMB2_FLAGS_SERVER_TO_REDIR
            return hdr;
        }
    
        // Helper: build SMB2 IOCTL response body (without header) with structureSize=49
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <ol>
     *   <li>remove();
     *   <li>hasNext()
     *   <li>hasNext();
     *   <li>remove();
     *   <li>next();
     * </ol>
     *
     * <p>This particular order of operations may be unrealistic, and testing all 3^5 of them may be
     * thought of as overkill; however, it's difficult to determine which proper subset of this massive
     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <ol>
     *   <li>remove();
     *   <li>hasNext()
     *   <li>hasNext();
     *   <li>remove();
     *   <li>next();
     * </ol>
     *
     * <p>This particular order of operations may be unrealistic, and testing all 3^5 of them may be
     * thought of as overkill; however, it's difficult to determine which proper subset of this massive
     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 4.3K bytes
    - Click Count (0)
Back to Top