- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 390 for nowrap (0.05 seconds)
-
src/test/java/jcifs/smb/SmbTransportImplTest.java
} @Test @DisplayName("unwrap returns this for compatible types and throws otherwise") void unwrapBehavior() { // Happy paths SmbTransport asIface = transport.unwrap(SmbTransport.class); assertSame(transport, asIface); SmbTransportInternal asInternal = transport.unwrap(SmbTransportInternal.class); assertSame(transport, asInternal);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TreeBasedTableRowMapSubMapTest.java
TreeBasedTable<String, Integer, Character> table = makeTable(); populateTable(table); return table.rowMap().subMap("b", "x"); } @Override protected Map<String, Map<Integer, Character>> makeEmptyMap() { return makeTable().rowMap().subMap("b", "x"); } @Override protected String getKeyNotInPopulatedMap() { return "z"; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.6K bytes - Click Count (0) -
src/main/java/jcifs/SmbTree.java
/** * Unwraps the tree instance to the specified type * @param <T> the target tree type * @param type the class of the tree type to unwrap to * @return tree instance with the given type */ <T extends SmbTree> T unwrap(Class<T> type); /** * {@inheritDoc} * * @see java.lang.AutoCloseable#close() */ @Override void close();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/Address.java
* * @author mbechler * */ public interface Address { /** * Unwrap the address to a specific type * * @param <T> the type to unwrap to * @param type the target type to unwrap to * @return instance for type, null if the type cannot be unwrapped */ <T extends Address> T unwrap(Class<T> type); /** * Gets the host name of this address. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/SmbTransportTest.java
@Test void testUnwrap() { // Arrange SmbTransport mockUnwrappedTransport = smbTransport; // Mocking unwrap to return itself for simplicity when(smbTransport.unwrap(SmbTransport.class)).thenReturn(mockUnwrappedTransport); // Act SmbTransport result = smbTransport.unwrap(SmbTransport.class); // Assert assertNotNull(result, "Unwrapped transport should not be null");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
guava/src/com/google/common/collect/SparseImmutableTable.java
@Override public ImmutableMap<R, Map<C, V>> rowMap() { // Casts without copying. return ImmutableMap.copyOf(rowMap); } @Override public int size() { return cellRowIndices.length; } @Override Cell<R, C, V> getCell(int index) { int rowIndex = cellRowIndices[index]; Entry<R, ImmutableMap<C, V>> rowEntry = rowMap.entrySet().asList().get(rowIndex);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
return "TESTDOMAIN"; // test domain for test purposes } @Override public <T extends Credentials> T unwrap(Class<T> type) { if (type.isInstance(this)) { return type.cast(this); } throw new ClassCastException("Cannot unwrap to " + type.getName()); } } static class SelfRenewingCreds extends BaseCreds { @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
internal/logger/logonce.go
} } const unwrapErrsDepth = 3 // unwrapErrs upto the point where errors.Unwrap(err) returns nil func unwrapErrs(err error) (leafErr error) { uerr := errors.Unwrap(err) depth := 1 for uerr != nil { // Save the current `uerr` leafErr = uerr // continue to look for leaf errors underneath uerr = errors.Unwrap(leafErr) depth++ if depth == unwrapErrsDepth { // If we have reached enough depth we
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
} } @Nested @DisplayName("unwrap method tests") class UnwrapTests { private Address mockAddress; @BeforeEach void setup() { mockAddress = mock(Address.class); } @Test void shouldReturnUnwrappedAddressWhenWrappedIsAddress() { when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.4K bytes - Click Count (0) -
src/test/java/jcifs/AddressTest.java
address.toInetAddress(); address.unwrap(Address.class); }, "All Address interface methods should be callable"); } @Test @DisplayName("unwrap method should return correct type when supported") void testUnwrapMethodContract() throws Exception { // Given when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress); // When & Then
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0)