- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for setState (0.09 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/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/util/transport/TransportTest.java
for (int state : disconnectedStates) { transport.setState(state); assertTrue(transport.isDisconnected(), "State " + state + " should be disconnected"); } for (int state : connectedStates) { transport.setState(state); assertFalse(transport.isDisconnected(), "State " + state + " should not be disconnected");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java
channel1 = new ChannelInfo("channel1", mockTransport1, local, remote1); channel1.setState(ChannelState.ESTABLISHED); channel2 = new ChannelInfo("channel2", mockTransport2, local, remote2); channel2.setState(ChannelState.ESTABLISHED); } @Test void testSingleChannelSelection() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K 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/WitnessRegistration.java
* * @return the current registration state */ public WitnessRegistrationState getState() { return state; } /** * Sets the registration state. * * @param state the new registration state */ public void setState(WitnessRegistrationState state) { this.state = state; } /** * Gets the registration flags.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K 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/multichannel/ChannelManagerTest.java
NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000); ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface); healthyChannel.setState(ChannelState.ESTABLISHED); // Use reflection or package-private method to add channel for testing // For now, just test the empty case assertEquals(0, channelManager.getHealthyChannels().size());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/date.js
var h=Math.floor((f.getTime()-e.getTime())/864e5),i=g+h/(c(f.getFullYear())?366:365),j=((i+"").split(".")[1]||"").substr(0,3);return i>=0?Math.floor(i)+(j>=915?1:0):(j*=10,Math.floor(i)+(j<=840?1:0))}function c(a){var b=new Date(a,1,28);return b.setDate(b.getDate()+1),1===b.getMonth()}a.formUtils.registerLoadedModule("date"),a.formUtils.addValidator({name:"time",validatorFunction:function(a){if(null===a.match(/^(\d{2}):(\d{2})$/))return!1;var b=parseInt(a.split(":")[0],10),c=parseInt(a.split(":"...
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 1.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
assertEquals(THREAD_PRIORITY, thread.getPriority()); assertEquals(THREAD_DAEMON, thread.isDaemon()); assertSame(UNCAUGHT_EXCEPTION_HANDLER, thread.getUncaughtExceptionHandler()); assertSame(Thread.State.NEW, thread.getState()); assertFalse(completed); thread.start(); thread.join(); assertTrue(completed); } public void testNulls() { NullPointerTester npTester = new NullPointerTester();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 7.6K bytes - Viewed (0)