Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 145 for simulate (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            // Test getInfo with compatible class
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // Simulate setting info using reflection
            SmbInfoAllocation allocation = new SmbInfoAllocation();
            setInfoField(response, allocation);
    
            SmbInfoAllocation result = response.getInfo(SmbInfoAllocation.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

            // Test empty directory deletion logic
            File emptyDir = new File(tempDir, "empty");
            emptyDir.mkdirs();
            assertTrue(emptyDir.exists());
    
            // Simulate the behavior of postVisitDirectory - delete empty directories
            if (emptyDir.isDirectory() && emptyDir.list().length == 0) {
                emptyDir.delete();
            }
    
            assertFalse(emptyDir.exists());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                byte[] buffer1 = new byte[10];
                byte[] buffer2 = new byte[10];
                SMBUtil.writeInt2(4, buffer1, 0);
                SMBUtil.writeInt2(4, buffer2, 0);
    
                // When - simulate concurrent access
                Thread thread1 = new Thread(() -> {
                    try {
                        response.readBytesWireFormat(buffer1, 0);
                    } catch (SMBProtocolDecodingException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportImplTest.java

            assertEquals(0, transport.getNumSessions());
        }
    
        @Test
        @DisplayName("isDisconnected / isFailed reflect socket and state")
        void connectionStateChecks() throws Exception {
            // Arrange: simulate connected state and open socket
            setField(transport, "state", 3); // connected
            Socket s = mock(Socket.class);
            when(s.isClosed()).thenReturn(false);
            setField(transport, "socket", s);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                if ("error".equals(template)) {
                    // Simulate error by returning null
                    return null;
                }
                return template;
            }
        }
    
        // Test helper class
        private static class TestUser {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

            // Second immediate call should use cache
            names = testFactory.getDataStoreNames();
            assertEquals(2, names.length);
            assertEquals(1, loadCount[0]); // Should not increment
    
            // Simulate time passing (more than 60 seconds)
            testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L;
    
            // Should reload after cache expiry
            names = testFactory.getDataStoreNames();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/LmhostsTest.java

            // Test that #INCLUDE directive is handled (even if the include fails)
            String content = "#INCLUDE \\\\server\\share\\lmhosts\n" + "192.168.1.100 MAINHOST\n";
    
            // Mock SmbFileInputStream to simulate include file
            try (MockedConstruction<SmbFileInputStream> mockedConstruction =
                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

                private long totalTime = 0;
    
                @Override
                public void store(DataStoreParams paramMap, Map<String, Object> dataMap) {
                    try {
                        Thread.sleep(10); // Simulate processing time
                    } catch (InterruptedException e) {
                        // Ignore
                    }
                    totalTime = System.currentTimeMillis() - startTime;
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

            }
        }
    
        // Test property filter returning null simulation
        public void test_get_filterReturnsNull() {
            // The filter.null property is configured to simulate null filter behavior
            try {
                fessConfig.get("filter.null");
                fail("Should throw exception when property is not found");
            } catch (ConfigPropertyNotFoundException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

            void urlParameterParsing() {
                String expectedUrl = "smb://server/share/test.txt";
                TestLocking t = new TestLocking();
    
                // Simulate argument parsing
                String[] args = { "-t", "2", "-i", "5", "-d", "100", expectedUrl };
                for (int ai = 0; ai < args.length; ai++) {
                    if (args[ai].equals("-t")) {
                        ai++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top