- Sort Score
- Result 10 results
- Languages All
Results 3701 - 3710 of 3,894 for 1Final (0.15 sec)
-
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
} } /** * Test helper class for mocking URL.openConnection() behavior */ static class TestURLStreamHandler extends java.net.URLStreamHandler { private final List<HttpURLConnection> connections = new ArrayList<>(); private int currentIndex = 0; void addConnection(HttpURLConnection conn) { connections.add(conn); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
README.md
return response.body().string(); } } ``` Post to a Server ---------------- This program posts data to a service. [Full source][post_example]. ```java public static final MediaType JSON = MediaType.get("application/json"); OkHttpClient client = new OkHttpClient(); String post(String url, String json) throws IOException { RequestBody body = RequestBody.create(json, JSON);
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
// Given when(mockDelegate.hasNext()).thenReturn(true, false); when(mockDelegate.next()).thenReturn(mockFileEntry1); // Create iterator with custom adapt implementation final boolean[] adaptCalled = { false }; DirFileEntryAdapterIterator iterator = new DirFileEntryAdapterIterator(mockParent, mockDelegate, null) { @Override protected SmbResource adapt(FileEntry e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
session.setLocalRepositoryManager(new SimpleLocalRepositoryManagerFactory().newInstance(session, localRepo)); return session; } private static final char[] HEX_CODE = "0123456789ABCDEF".toCharArray(); private static String printHexBinary(byte[] data) { StringBuilder r = new StringBuilder(data.length * 2); for (byte b : data) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 10 09:40:15 UTC 2025 - 13.8K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java
import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * Utility class for creating test fixtures and reducing code duplication in tests. */ public final class TestUtils { private TestUtils() { // Utility class } /** * Creates a mock UpgradeContext with default settings. * * @return a mock UpgradeContext */Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
* PeekingIterator#remove()} removes the same elements as the reference's iterator {@code * remove()}. */ private static class PeekingIteratorTester<T extends @Nullable Object> extends IteratorTester<T> { private final Iterable<T> master; private @Nullable List<T> targetList; PeekingIteratorTester(Collection<T> master) { super(master.size() + 3, MODIFIABLE, master, IteratorTester.KnownOrder.KNOWN_ORDER);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java
* * Uses regular TCP sockets to simulate RDMA operations. * This provides a fallback when real RDMA hardware is not available. */ public class TcpRdmaConnection extends RdmaConnection { private static final Logger log = LoggerFactory.getLogger(TcpRdmaConnection.class); private SocketChannel socketChannel; private Socket socket; /** * Create new TCP RDMA connection *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.8K bytes - Viewed (0) -
api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java
public class DiIndexProcessor extends AbstractProcessor { /** * Set of fully qualified class names that have been processed and contain the {@link Named} annotation. */ private final Set<String> processedClasses = new HashSet<>(); /** * Processes classes with the {@link Named} annotation and generates an index file. * * @param annotations the annotation types requested to be processedRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
public MapsTransformValuesUnmodifiableIteratorTest() { super(true, true, false /*supportsPut*/, true, true, false); } private static class UnmodifiableIteratorMap<K, V> extends ForwardingMap<K, V> { final Map<K, V> delegate; UnmodifiableIteratorMap(Map<K, V> delegate) { this.delegate = delegate; } @Override protected Map<K, V> delegate() { return delegate; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
@ParameterizedTest @ValueSource(strings = { "0", "1", "2", "3", "4", "5" }) void testLmCompatibilityStaticInitialization(String lmCompatibility) { // Attempt to change the property (won't affect static final LM_COMPATIBILITY) jcifs.smb1.Config.setProperty("jcifs.smb1.smb.lmCompatibility", lmCompatibility); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", "password");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0)