Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isCloseCalled (0.22 sec)

  1. src/test/java/jcifs/context/AbstractCIFSContextTest.java

        }
    
        @Test
        void testClose() throws CIFSException {
            assertFalse(context.isCloseCalled());
    
            boolean result = context.close();
    
            assertFalse(result); // AbstractCIFSContext always returns false for close()
            assertTrue(context.isCloseCalled());
        }
    
        @Test
        void testRun_successfulClose() throws CIFSException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

         * Closeable component that throws exception on close
         */
        public static class FailingCloseableComponent implements AutoCloseable {
            private boolean closeCalled = false;
    
            public boolean isCloseCalled() {
                return closeCalled;
            }
    
            @Override
            public void close() throws Exception {
                closeCalled = true;
                throw new Exception("Intentional close failure");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
Back to top