Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testWatch (0.05 sec)

  1. src/test/java/jcifs/SmbWatchHandleTest.java

            mockNotifications.add(fileNotifyInfo2);
            mockNotifications.add(fileNotifyInfo3);
        }
    
        /**
         * Test watch() method returning notifications
         */
        @Test
        void testWatch() throws CIFSException {
            // Setup mock behavior
            when(watchHandle.watch()).thenReturn(mockNotifications);
    
            // Execute
            List<FileNotifyInformation> result = watchHandle.watch();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (1)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            // Need to include space for actual string data
            int stringDataStart = 28; // After the referral structure
            String testPath = "\\server\\share";
            byte[] pathBytes = testPath.getBytes(java.nio.charset.StandardCharsets.UTF_16LE);
            int bufferSize = stringDataStart + pathBytes.length + 2; // +2 for null terminator
            byte[] buffer = new byte[bufferSize];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Given - Path with various characters
            String testPath = "\\\\server\\test123";
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, testPath);
            byte[] buffer = new byte[512];
    
            // When
            req.encode(buffer, 0);
    
            // Then - Verify UTF-16LE encoding
            byte[] expectedBytes = testPath.getBytes(StandardCharsets.UTF_16LE);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java

                    .singleton("sitemapsRule", SitemapsRule.class);
            sitemapsRule = container.getComponent("sitemapsRule");
        }
    
        public void test_match() {
            assertMatchTrue(getTestData1_OK());
            assertMatchTrue(getTestData2_OK());
            assertMatchTrue(getTestData3_OK());
            assertMatchTrue(getTestData4_OK());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top