- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 2,990 for SHOULD (0.09 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
@MapFeature.Require(SUPPORTS_PUT) public void testComputeIfAbsent_supportedAbsent() { assertEquals( "computeIfAbsent(notPresent, function) should return new value", v3(), getMap() .computeIfAbsent( k3(), k -> { assertEquals(k3(), k); return v3();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
public void testAbsent() { assertEquals( "Map.merge(absent, value, function) should return value", v3(), getMap() .merge( k3(), v3(), (oldV, newV) -> { throw new AssertionFailedError( "Should not call merge function if key was absent"); })); expectAdded(e3()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
public void testAddAllAtIndex_supportedNothing() { assertFalse("addAll(n, nothing) should return false", getList().addAll(0, emptyCollection())); expectUnchanged(); } @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) public void testAddAllAtIndex_unsupportedNothing() { try { assertFalse( "addAll(n, nothing) should return false or throw", getList().addAll(0, emptyCollection()));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
caughtSpecific = true; } catch (RuntimeException e) { caughtRuntime = true; } assertTrue("Should have caught DictionaryExpiredException", caughtSpecific); assertFalse("Should not have caught as RuntimeException", caughtRuntime); } public void test_rethrow() { // Test rethrowing the exception
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
void testHasNextAlwaysReturnsFalse() { // When & Then assertFalse(emptyIterator.hasNext(), "hasNext should return false"); assertFalse(emptyIterator.hasNext(), "hasNext should consistently return false"); assertFalse(emptyIterator.hasNext(), "hasNext should always return false on repeated calls"); } @Test @DisplayName("next should return null")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
public void testGet_yes() { assertEquals("get(present) should return the associated value", v0(), get(k0())); } public void testGet_no() { assertNull("get(notPresent) should return null", get(k3())); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES) public void testGet_nullNotContainedButAllowed() { assertNull("get(null) should return null", get(null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
// Then assertNotNull(uniBytes, "UNI bytes should not be null"); assertNotNull(asciiBytes, "ASCII bytes should not be null"); assertNotNull(oemBytes, "OEM bytes should not be null"); assertEquals(0, uniBytes.length, "UNI bytes should be empty"); assertEquals(0, asciiBytes.length, "ASCII bytes should be empty");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
cmd/signature-v2_test.go
expected APIErrorCode }{ // (0) Should error without a set URL query. { expected: ErrInvalidQueryParams, }, // (1) Should error on an invalid access key. { queryParams: map[string]string{ "Expires": "60", "Signature": "badsignature", "AWSAccessKeyId": "Z7IXGOO6BZ0REAN1Q26I", }, expected: ErrInvalidAccessKeyID, }, // (2) Should error with malformed expires. {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
// Should match with same values assertTrue(fileInfo.matches(1024L, 1000L, 0x20)); // Should not match with different size assertFalse(fileInfo.matches(2048L, 1000L, 0x20)); // Should not match with different last modified assertFalse(fileInfo.matches(1024L, 2000L, 0x20)); // Should not match with different attributes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/UniAddressTest.java
assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called"); } @Test void nextCalledNameWithInetAddressReturnsSMBSERVERFirstIfNotDefault() { // Arrange InetAddress addr = mock(InetAddress.class); when(addr.getHostName()).thenReturn("mycomputer.foo.com"); UniAddress ua = new UniAddress(addr); // Act: first call should set to SMBSERVER_NAME
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0)