Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for test_close (0.12 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                assertEquals(CrawlerStatus.DONE, crawler.crawlerContext.getStatus());
                dataService.delete(sessionId);
            } finally {
                server.stop();
            }
        }
    
        public void test_close() throws Exception {
            final Crawler testCrawler = container.getComponent("crawler");
    
            // close should not throw exception
            testCrawler.close();
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Tue Nov 11 13:40:14 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

        }
    
        /**
         * Test for close() method.
         * Verifies that the close method can be called without throwing an exception.
         * @throws CIFSException
         */
        @Test
        void testClose() throws CIFSException {
            smbTreeHandle.close();
            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/CloseableUtilTest.java

    import java.io.OutputStream;
    
    import org.junit.Test;
    
    /**
     * @author shot
     */
    public class CloseableUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testClose() throws Exception {
            final NotifyOutputStream out = new NotifyOutputStream();
            CloseableUtil.close(out);
            assertThat(out.getNotify(), is("closed"));
        }
    
        /**
         * @throws Exception
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/context/AbstractCIFSContextTest.java

        }
    
        @Test
        void testRenewCredentials() {
            assertFalse(context.renewCredentials("someLocation", new Exception("someError")));
        }
    
        @Test
        void testClose() throws CIFSException {
            assertFalse(context.isCloseCalled());
    
            boolean result = context.close();
    
            assertFalse(result); // AbstractCIFSContext always returns false for close()
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/normalizer/NormalizerChainTest.java

            chain.add((text, field, langs) -> text.replace(" ", "_"));
    
            String result = chain.normalize("  TEST CASE  ", "field");
    
            assertEquals("test_case", result);
        }
    
        @Test
        public void test_nullInput() throws Exception {
            NormalizerChain chain = new NormalizerChain();
            chain.add(new FullWidthToHalfWidthAlphabetNormalizer());
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that the close method can be called without throwing an exception.
             * @throws CIFSException if an error occurs during close.
             */
            @Test
            public void testClose() throws CIFSException {
                assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object.");
                // Verify that the close method was called
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/CIFSContextTest.java

            // Then
            assertEquals(mockPipe, pipe);
            verify(mockContext).getPipe(url, pipeType);
        }
    
        @Test
        @DisplayName("Should close context")
        void testClose() throws CIFSException {
            // When
            mockContext.close();
    
            // Then
            verify(mockContext).close();
        }
    
        @Test
        @DisplayName("Should get Configuration")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            // When
            outputStream.flush();
    
            // Then - flush should complete without error
            assertTrue(outputStream.isOpen());
        }
    
        @Test
        void testClose() throws IOException, CIFSException {
            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
            when(mockTreeHandle.getSendBufferSize()).thenReturn(65536);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTreeTest.java

        }
    
        /**
         * Test for close() method under normal conditions.
         * Verifies that close can be called successfully.
         */
        @Test
        void testClose() {
            doNothing().when(smbTree).close();
    
            smbTree.close();
    
            verify(smbTree).close();
        }
    
        /**
         * Test for close() method called multiple times.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top