- Sort Score
- Num 10 results
- Language All
Results 1441 - 1450 of 1,709 for only2 (0.24 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/SmbSessionTest.java
void shouldSupportPartialMockingScenarios() { SmbSession mockSession = mock(SmbSession.class); Configuration mockConfig = mock(Configuration.class); // Only mock getConfig, leave others with default behavior when(mockSession.getConfig()).thenReturn(mockConfig); assertEquals(mockConfig, mockSession.getConfig());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create request with configuration only") void testConstructorWithConfig() { TestServerMessageBlock2Request request = new TestServerMessageBlock2Request(mockConfig); assertNotNull(request);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
Configuration mockConfig = mock(Configuration.class); Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig); byte[] buffer = new byte[10]; int offset = 8; // Only 2 bytes remaining, need 4 // When & Then assertThrows(ArrayIndexOutOfBoundsException.class, () -> { request.writeBytesWireFormat(buffer, offset); }); } @Test
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
@DisplayName("Should throw exception when offset exceeds buffer for reading") void testReadBytesWireFormatOffsetTooLarge() { // Given byte[] buffer = new byte[10]; int offset = 9; // Only 1 byte remaining, need at least 2 for structure size // When & Then assertThrows(ArrayIndexOutOfBoundsException.class, () -> { response.readBytesWireFormat(buffer, offset); });Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 13.7K bytes - Click Count (0) -
compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
Metadata metadata = new Metadata(); assertFalse(metadata.merge(new Metadata())); } @Test void mergeDifferentGAV() throws Exception { // merge implicitly assumes that merge is only called on the same GAV and does not perform any validation here! Metadata source = new Metadata(); source.setArtifactId("source-artifact"); source.setGroupId("source-group");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 13.7K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
* to execute other listeners. * * What about RuntimeException? If there is a bug in set()/setValue() that produces one, it will * propagate, too, but only as far as AbstractFuture.executeListener, which will catch and log * it. */ setResult(transformResult); } /** Template method for subtypes to actually run the transform. */ @ForOverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 20 18:03:37 GMT 2025 - 10.8K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* * <p>May <a * href="http://download.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/package-summary.html#Spurious"> * fail spuriously</a> and does not provide ordering guarantees, so is only rarely an appropriate * alternative to {@code compareAndSet}. * * @param i the index * @param expect the expected value * @param update the new value * @return true if successful */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 10.2K bytes - Click Count (0) -
tests/prepared_stmt_test.go
return err.Error() == "sql: statement is closed" } // TestPreparedStmtConcurrentClose test calling close and executing SQL concurrently // this test making sure that the gorm would not get a Segmentation Fault, and the only error cause by this is using a closed Stmt func TestPreparedStmtConcurrentClose(t *testing.T) { name := "prepared_stmt_concurrent_close" user := *GetUser(name, Config{}) createTx := DB.Session(&gorm.Session{}).Create(&user)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 8K bytes - Click Count (0) -
fastapi/security/http.py
return None return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials) class HTTPDigest(HTTPBase): """ HTTP Digest authentication. **Warning**: this is only a stub to connect the components with OpenAPI in FastAPI, but it doesn't implement the full Digest scheme, you would need to to subclass it and implement it in your code.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 13.2K bytes - Click Count (0)