- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for isInUse (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb/SmbSessionInternalTest.java
Mockito.reset(session, transport, tree); } // Happy path: isInUse returns the mocked state @ParameterizedTest @DisplayName("isInUse reflects current mocked state") @ValueSource(booleans = { true, false }) void isInUse_variants(boolean inUse) { when(session.isInUse()).thenReturn(inUse); boolean result = session.isInUse(); assertEquals(inUse, result);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
assertTrue(session.isInUse(), "Session should be in use initially"); try (SmbSessionImpl autoSession = session) { // Session is already in use due to transport acquisition assertTrue(autoSession.isInUse(), "Session should be in use"); } // Session should be automatically released assertFalse(session.isInUse(), "Session should be released after try-with-resources");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
*/ public String getTargetHost() { return this.targetHost; } /** * @return whether the session is in use */ @Override public boolean isInUse() { return this.usageCount.get() > 0; } /** * {@inheritDoc} * * @see jcifs.SmbSession#unwrap(java.lang.Class) */ @SuppressWarnings("unchecked")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0)