- Sort Score
- Result 10 results
- Languages All
Results 551 - 560 of 3,060 for SHOULD (0.06 sec)
-
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
} public void testSetValue_simpleThreaded() throws Exception { SettableFuture<Integer> future = SettableFuture.create(); assertTrue(future.set(42)); // Later attempts to set the future should return false. assertFalse(future.set(23)); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.<Integer>create())); // Check that the future has been set properly.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.3K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
/// ## Return the token { #return-the-token } The response of the `token` endpoint must be a JSON object. It should have a `token_type`. In our case, as we are using "Bearer" tokens, the token type should be "`bearer`". And it should have an `access_token`, with a string containing our access token.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java
CommandExecutionException exception1 = new CommandExecutionException("Test"); CommandExecutionException exception2 = new CommandExecutionException("Test"); // Both instances should be of the same class assertEquals(exception1.getClass(), exception2.getClass()); // Test serialization compatibility by checking class name
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
assertEquals(1, loadCount[0]); // Should not increment // Simulate time passing (more than 60 seconds) testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L; // Should reload after cache expiry names = testFactory.getDataStoreNames(); assertEquals(2, names.length); assertEquals(2, loadCount[0]); // Should increment }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/EncodableTest.java
assertEquals(0, enc.size(), "size() must be zero"); assertEquals(0, written, "encode() must return zero for zero length"); for (byte b : dst) { assertEquals((byte) 0x7A, b, "Destination should remain unchanged"); } } @Test @DisplayName("encode() throws when destination too small") void encodeThrowsWhenDestinationTooSmall() { byte[] src = makeSeq(5);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
int writtenSize = range.encode(dst, 0); assertEquals(10, writtenSize, "Range size when not large should be 10"); // create a new empty range and decode LockingAndXRange decoded = new LockingAndXRange(false); int decodedSize = decoded.decode(dst, 0, dst.length); assertEquals(10, decodedSize, "Decode should return size 10"); assertEquals(99, decoded.getPid());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
assertThrows(SmbException.class, () -> tree.treeConnect(null, null)); // After failure, state should be reset to disconnected assertEquals(0, tree.connectionState); } @Test void testSend() throws SmbException { SmbTree tree = new SmbTree(session, "testShare", "A:");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt
) }, ).containsExactly( "--> GET http://google.com/robots.txt", "<-- HTTP FAILED: java.net.UnknownHostException: shortcircuit. ${request.url} (ms)", ) // We should consider if these logs should retain Exceptions assertThat(logs.last().throwable).isNull() } @Test fun testLoggingEventListener() { val client = clientBuilder.eventListenerFactory(LoggingEventListener.Factory()).build()Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
*/ @Test public void testMalformedStructureSize() { byte[] malformedBuffer = createBasicNegotiateResponseBuffer(); // Set incorrect structure size (should be 65) SMBUtil.writeInt2(64, malformedBuffer, 0); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> { response.readBytesWireFormat(malformedBuffer, 0);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
tests/create_test.go
} if u1.ID == 0 { t.Errorf("user's primary key should has value after create, got : %v", u1.ID) } if u1.CreatedAt.IsZero() { t.Errorf("user's created at should be not zero") } if u1.UpdatedAt.IsZero() { t.Errorf("user's updated at should be not zero") } var newUser User if err := DB.Where("id = ?", u1.ID).First(&newUser).Error; err != nil {Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 09:55:20 UTC 2025 - 26.8K bytes - Viewed (0)