- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 246 for delegates (0.05 sec)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
} @Test @DisplayName("getFlags delegates to underlying mechanism context") void testGetFlagsDelegates() { SpnegoContext ctx = newContext(); when(this.mechContext.getFlags()).thenReturn(0xCAFE); assertEquals(0xCAFE, ctx.getFlags()); verify(this.mechContext, times(1)).getFlags(); } @Test @DisplayName("dispose delegates to underlying mechanism context")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
@Test @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate") void constructorAndSimpleDelegations() { // Ensures constructor acquires tree connection and simple delegate methods forward correctly // Verify constructor invoked acquire once verify(treeConnection, times(1)).acquire(); // getConfig delegates when(treeConnection.getConfig()).thenReturn(config);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
assertTrue(ex.getMessage().contains("boom")); } @Test @DisplayName("ensureTreeConnected delegates to handle") void ensureTreeConnected_delegates() throws Exception { // Verify ensureTreeConnected() delegates to SmbPipeHandleImpl SmbPipeInputStream stream = newStreamWithMinimalStubs(true); when(handle.ensureTreeConnected()).thenReturn(tree);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
// Act return new SmbPipeOutputStream(handle, tree); } @ParameterizedTest @ValueSource(booleans = { true, false }) @DisplayName("isOpen delegates to handle.isOpen") void isOpen_delegates(boolean state) throws Exception { // Arrange SmbPipeOutputStream out = newStream(); when(handle.isOpen()).thenReturn(state); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
verify(delegate, times(1)).close(); } @Test @DisplayName("remove() delegates to underlying iterator") void removeDelegates() { // Arrange: no elements - no parent setup needed since no URLs are created when(delegate.hasNext()).thenReturn(false); NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, null); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
/** A wrapped future that does not propagate cancellation to its delegate. */ private static final class NonCancellationPropagatingFuture<V extends @Nullable Object> extends AbstractFuture.TrustedFuture<V> implements Runnable { @LazyInit private @Nullable ListenableFuture<V> delegate; NonCancellationPropagatingFuture(ListenableFuture<V> delegate) { this.delegate = delegate; } @Override public void run() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
} }; // When/Then assertThrows(CIFSException.class, () -> iterator.close(), "Should propagate exception from delegate close"); } /** * Test remove method delegates to underlying iterator. */ @Test void testRemove() { // Given when(mockDelegate.hasNext()).thenReturn(true, false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
* * @param delegate * context to delegate non-override methods to * */ public CIFSContextWrapper(final CIFSContext delegate) { this.delegate = delegate; } /** * {@inheritDoc} * * @throws CIFSException if the URL is malformed or there is an error creating the SMB resource * * @see jcifs.CIFSContext#get(java.lang.String) */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java
* the License. */ package com.google.common.collect; import java.util.Collection; import org.jspecify.annotations.Nullable; /** Never actually created; instead delegates to JdkBackedImmutableMultiset. */ final class RegularImmutableMultiset<E> extends ImmutableMultiset<E> { static final ImmutableMultiset<Object> EMPTY = JdkBackedImmutableMultiset.create(ImmutableList.of());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
void emptyIterator() { when(delegate.hasNext()).thenReturn(false); TestIterator iterator = new TestIterator(null); assertFalse(iterator.hasNext()); assertNull(iterator.next()); } @Test @DisplayName("Close delegates to underlying iterator") void closeDelegation() throws CIFSException { when(delegate.hasNext()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0)