- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 113 for Hockin (0.04 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
assertEquals(USER_REALM, ticket.getUserRealm()); } } // Note: Testing the code path where keys are null and retrieved from // KerberosCredentials requires mocking the constructor of KerberosCredentials, // which is not possible with standard Mockito. A tool like PowerMock would be needed.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
HTTP to HTTPS. ## Version 1.1.0 _2013-06-15_ * Fix: Connection reuse was broken for most HTTPS connections due to a bug in the way the hostname verifier was selected. * Fix: Locking bug in SpdyConnection. * Fix: Ignore null header values (for compatibility with HttpURLConnection). * Add URLStreamHandlerFactory support so that `URL.openConnection()` uses OkHttp.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
assertEquals(4, list.lastIndexOf("b")); } public void testCopyOfDefensiveCopy() { // Depending on JDK version, either toArray() or toArray(T[]) may be called... use this class // rather than mocking to ensure that one of those methods is called. class TestArrayList<E> extends ArrayList<E> { boolean toArrayCalled = false; @Override public Object[] toArray() { toArrayCalled = true;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 22.7K bytes - Viewed (0) -
mockwebserver/README.md
server to create representative test cases. Or test that your code survives in awkward-to-reproduce situations like 500 errors or slow-loading responses. ### Example Use MockWebServer the same way that you use mocking frameworks like [Mockito](https://github.com/mockito/mockito): 1. Script the mocks. 2. Run application code. 3. Verify that the expected requests were made. Here's a complete example: ### Java ```java
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
} } @Nested class AttributeAndStateTests { @Test public void testGetTypeForFile() throws Exception { // Mocking underlying connection and info retrieval is complex. // This test focuses on the logic based on the URL structure. SmbFile file = new SmbFile("smb1://server/share/file.txt");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/hash/BloomFilterStrategies.java
* * <p>Note that because of concurrent set calls and uses of atomics, this bitCount is a (very) * close *estimate* of the actual number of bits set. It's not possible to do better than an * estimate without locking. Note that the number, if not exactly accurate, is *always* * underestimating, never overestimating. */ long bitCount() { return bitCount.sum(); } LockFreeBitArray copy() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jan 08 14:27:16 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
// to create the stream handler for the connection. URLStreamHandlerFactory mockFactory = mock(URLStreamHandlerFactory.class); // Create a concrete URLStreamHandler subclass instead of mocking URLStreamHandler mockStreamHandler = new URLStreamHandler() { @Override protected URLConnection openConnection(URL u) throws IOException { return mock(HttpURLConnection.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; /** * Tests for SmbTree interface. * This test class covers all methods of the SmbTree interface using Mockito for mocking. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbTreeTest { @Mock private SmbTree smbTree; @Mock private SmbTree mockWrappedTree;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProcessHelper.java
this.streamCloseTimeout = streamCloseTimeout; } /** * Sends a command to the process associated with the given session ID. * Uses finer-grained locking to avoid blocking other operations during I/O. * * @param sessionId unique identifier for the process session * @param command the command to send to the processRegistered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 06:54:47 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
assertEquals("Malformed PAC", exception.getMessage()); } @Test @DisplayName("Test getters return expected values using mocks") void testGetters() throws Exception { // Use mocking to test getters without complex PAC data creation PacLogonInfo logonInfo = mock(PacLogonInfo.class); // Setup mock responses when(logonInfo.getUserName()).thenReturn(TEST_USERNAME);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0)