Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 615 for verifyCn (0.04 sec)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

        }
    
        /**
         * Verify that the encode method forwards the value to NdrBuffer.
         */
        @Test
        @DisplayName("Encode should call NdrBuffer.enc_ndr_hyper with correct value")
        public void testEncodeInteraction() throws NdrException {
            NdrBuffer buf = mock(NdrBuffer.class);
            NdrHyper hyper = new NdrHyper(12345L);
            hyper.encode(buf);
            verify(buf, times(1)).enc_ndr_hyper(12345L);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java

            crawlerThread.run();
    
            verify(urlQueueService, times(1)).poll(anyString());
        }
    
        /**
         * Test run method with crawler status DONE.
         */
        public void test_run_statusDone() throws Exception {
            crawlerContext.setStatus(CrawlerStatus.DONE);
    
            crawlerThread.run();
    
            verify(urlQueueService, times(0)).poll(anyString());
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                // we need to catch it to verify that pipe.close() was still called
                try {
                    handle.close();
                    fail("Expected IOException to be thrown");
                } catch (IOException e) {
                    assertEquals("Handle close failed", e.getMessage());
                }
    
                verify(mockSmbPipeHandleInternal).close();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            when(mockRequest.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_WRITE);
    
            digest.sign(data, 0, data.length, mockRequest, mockResponse);
    
            verify(mockRequest).setSignSeq(10);
            verify(mockResponse).setSignSeq(11);
        }
    
        @Test
        @DisplayName("Test sign method with bypass enabled")
        void testSignWithBypass() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            // Act
            pipe.customizeCreate(req, resp);
    
            // Assert: verify interactions with dependencies
            verify(req, times(1)).addFlags0(0x16);
            verify(resp, times(1)).setExtended(true);
            verify(resp, never()).setExtended(false);
        }
    
        @Test
        @DisplayName("openPipe returns a handle bound to this pipe")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbTransportTest.java

            verify(smbTransport).unwrap(SmbTransport.class); // Verify that the method was called
        }
    
        @Test
        void testClose() throws Exception {
            // Act
            smbTransport.close();
    
            // Assert
            verify(smbTransport).close(); // Verify that the close method was called
        }
    
        @Test
        void testGetRemoteAddress() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

            int result = response.readDataWireFormat(buffer, bufferIndex, len);
    
            // Verify the result
            assertEquals(len, result, "readDataWireFormat should return the length of data read.");
    
            // Verify that the receive method on the input stream was called exactly once
            verify(mockPipeIn, times(1)).receive(buffer, bufferIndex, len);
        }
    
        /**
         * Tests the toString method.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

        void testConstructorInitialization() {
            // Verify level is set to 200 for DFS root enumeration
            assertEquals(200, dfsRootEnum.level);
    
            // Verify DCE/RPC message properties
            assertEquals(0, dfsRootEnum.getPtype());
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, dfsRootEnum.getFlags());
    
            // Verify DFS enumeration structure
            assertNotNull(dfsRootEnum.info);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            // Verify filter interactions: not called for '.' and '..', called for others
            verify(nameFilter, never()).accept(parent, ".");
            verify(nameFilter, never()).accept(parent, "..");
            ArgumentCaptor<String> nameCaptor = ArgumentCaptor.forClass(String.class);
            verify(nameFilter, atLeast(1)).accept(eq(parent), nameCaptor.capture());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/NullResponseProcessorTest.java

            // Execute - should not throw any exception
            processor.process(responseData);
    
            // Verify child URLs are unchanged
            assertEquals(2, responseData.getChildUrlSet().size());
        }
    
        public void test_noOpBehavior() {
            // Verify that NullResponseProcessor truly does nothing
            NullResponseProcessor processor = new NullResponseProcessor();
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top