- Sort Score
- Num 10 results
- Language All
Results 2891 - 2900 of 3,043 for 1final (0.14 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
import jcifs.internal.smb2.RequestWithFileId; import jcifs.internal.util.SMBUtil; @ExtendWith(MockitoExtension.class) class Smb2CreateResponseTest { // SMB2 header size in bytes private static final int SMB2_HEADER_LENGTH = 64; /** * Build a minimal SMB2 header for a response. */ private static byte[] buildSmb2Header() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
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); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (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);
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 9.5K bytes - Click Count (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) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (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) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (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 */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 8.9K bytes - Click Count (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);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 8.5K bytes - Click Count (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; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (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");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
import org.junit.Test; /** Functional tests of {@link ClassPath}. */ @NullUnmarked public class ClassPathTest extends TestCase { private static final Logger log = Logger.getLogger(ClassPathTest.class.getName()); private static final File FILE = new File("."); public void testEquals() { new EqualsTester() .addEqualityGroup(classInfo(ClassPathTest.class), classInfo(ClassPathTest.class))Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 23K bytes - Click Count (0)