- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for getState (0.67 sec)
-
src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java
registration.setState(WitnessRegistrationState.REGISTERED); assertEquals(WitnessRegistrationState.REGISTERED, registration.getState()); registration.setState(WitnessRegistrationState.UNREGISTERING); assertEquals(WitnessRegistrationState.UNREGISTERING, registration.getState()); registration.setState(WitnessRegistrationState.FAILED);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Circuit should be in HALF_OPEN"); // One more success should close the circuit (threshold is 2) circuitBreaker.executeWithCircuitBreaker(() -> "success2"); assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after success threshold"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); // Wait for timeout Thread.sleep(150); // Next call should transition to HALF_OPEN String result = circuitBreaker.call(() -> "success"); assertEquals("success", result); assertEquals(SimpleCircuitBreaker.State.HALF_OPEN, circuitBreaker.getState()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
boolean isDone() { return (getState() & (COMPLETED | CANCELLED | INTERRUPTED)) != 0; } /** Checks if the state is {@link #CANCELLED} or {@link #INTERRUPTED}. */ boolean isCancelled() { return (getState() & (CANCELLED | INTERRUPTED)) != 0; } /** Checks if the state is {@link #INTERRUPTED}. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
assertEquals(ChannelState.ESTABLISHED, channelInfo.getState()); assertTrue(channelInfo.isHealthy()); channelInfo.setState(ChannelState.ACTIVE); assertTrue(channelInfo.isHealthy()); channelInfo.setState(ChannelState.FAILED); assertFalse(channelInfo.isHealthy()); } @Test void testActivityTracking() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
failedChannel.setState(ChannelState.ESTABLISHED); when(mockChannelManager.getLoadBalancer()).thenReturn(mockLoadBalancer); } @Test void testHandleFailure() { IOException error = new IOException("Connection failed"); failover.handleFailure(failedChannel, error); assertEquals(ChannelState.FAILED, failedChannel.getState());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
assertEquals(address, connection.getRemoteAddress(), "Remote address should match"); assertNotNull(connection.getState(), "Connection state should not be null"); System.out.println("RDMA connection created to: " + address); System.out.println("Connection state: " + connection.getState()); } } @Test public void testRdmaTransportCreationWithMockDelegate() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
channel.setState(ChannelState.ESTABLISHED); // Simulate failure IOException failure = new IOException("Connection lost"); failover.handleFailure(channel, failure); // Verify channel state changed assertFalse(channel.isHealthy()); assertEquals(ChannelState.FAILED, channel.getState()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
/** * Monitors active registrations and sends heartbeats. */ private void monitorRegistrations() { for (WitnessRegistration registration : registrations.values()) { if (registration.getState() == WitnessRegistrationState.REGISTERED) { // Send periodic heartbeat sendHeartbeat(registration); } } } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
assertTrue(future.isDone()); assertListenerRunImmediately(future); assertEquals(1, threadLocalCount.get().intValue()); otherThread.join(1000); assertEquals(Thread.State.TERMINATED, otherThread.getState()); Throwable throwable = throwableFromOtherThread.get(); assertNull( "Throwable from other thread: " + (throwable == null ? null : Throwables.getStackTraceAsString(throwable)),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 28K bytes - Viewed (0)