Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 1,085 for Ensure (0.06 seconds)

  1. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            assertEquals("Error 1", exception1.getMessage());
            assertEquals("Error 2", exception2.getMessage());
            assertEquals("Error 3", exception3.getMessage());
    
            // Ensure they are different instances
            assertNotSame(exception1, exception2);
            assertNotSame(exception2, exception3);
            assertNotSame(exception1, exception3);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            loadBalancer.setStrategy(LoadBalancingStrategy.WEIGHTED_RANDOM);
            when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2));
    
            // Test multiple selections to ensure it works
            for (int i = 0; i < 10; i++) {
                ChannelInfo selected = loadBalancer.selectChannel(mockMessage);
                assertTrue(Arrays.asList(channel1, channel2).contains(selected));
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/MultiChannelManager.java

                SmbTransportImpl transport = new SmbTransportImpl(context, serverUniAddress, port, localAddress, localPort, forceSigning);
    
                // Ensure the transport is connected and ready
                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
            SmbTransportPoolImpl testPool = new SmbTransportPoolImpl();
            when(ctx.getTransportPool()).thenReturn(testPool);
    
            // Create an existing connection
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java

            float boost = 1.5f;
    
            // Execute and ensure no exceptions are thrown
            QueryBuilder result = matchAllQueryCommand.execute(context, query, boost);
    
            assertNotNull(result);
    
            // Note: Actual log output verification would require a log appender mock
            // but we can at least ensure the method executes without errors
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/async-tests.md

    /// tip
    
    Note that we're using async/await with the new `AsyncClient` - the request is asynchronous.
    
    ///
    
    /// warning
    
    If your application relies on lifespan events, the `AsyncClient` won't trigger these events. To ensure they are triggered, use `LifespanManager` from [florimondmanca/asgi-lifespan](https://github.com/florimondmanca/asgi-lifespan#usage).
    
    ///
    
    ## Other Asynchronous Function Calls { #other-asynchronous-function-calls }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                setException(failure);
              }
            };
    
        ExecutionException ee1 = getExpectingExecutionException(future);
        ExecutionException ee2 = getExpectingExecutionException(future);
    
        // Ensure we get a unique execution exception on each get
        assertThat(ee1).isNotSameInstanceAs(ee2);
    
        assertThat(ee1).hasCauseThat().isEqualTo(failure);
        assertThat(ee2).hasCauseThat().isEqualTo(failure);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

        /**
         * The mime type.
         */
        public String mimeType = "application/datastore";
    
        /**
         * The flag to check if the data store is alive.
         * Volatile to ensure visibility across threads.
         */
        protected volatile boolean alive = true;
    
        /**
         * Default constructor.
         */
        public AbstractDataStore() {
            // nothing
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                throw SmbException.wrap(e);
            }
        }
    
        /**
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            // ensure file is open
            if (this.handle == null || !this.handle.isValid()) {
                // one extra acquire to keep this open till the stream is released
                this.handle =
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  10. internal/stmt_store/stmt_store.go

    		prepared:    make(chan struct{}),
    	}
    	// Cache the Stmt object with the associated key.
    	s.Set(key, cacheStmt)
    	// Unlock after completing initialization to prevent deadlocks.
    	locker.Unlock()
    
    	// Ensure the prepared channel is closed after the function execution completes.
    	defer close(cacheStmt.prepared)
    
    	// Prepare the SQL statement using the provided connection.
    	cacheStmt.Stmt, err = conn.PrepareContext(ctx, key)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top