- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 92 for Truong (0.05 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
+ "IllegalArgumentException or UnsupportedOperationException"); } catch (IllegalArgumentException | UnsupportedOperationException expected) { } } // TODO: test adding element of wrong type /** * Returns {@link Method} instances for the {@code setCount()} tests that assume multisets support * duplicates so that the test of {@code Multisets.forSet()} can suppress them. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
return; // there's nothing to test } @Nullable Object[] params = buildParamList(invokable, paramIndex); try { @SuppressWarnings("unchecked") // We'll get a runtime exception if the type is wrong. Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable; unsafe.invoke(instance, params); Assert.fail( "No exception thrown for parameter at index " + paramIndex
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
cmd/object-api-utils_test.go
func TestGetCompleteMultipartMD5(t *testing.T) { testCases := []struct { parts []CompletePart expectedResult string expectedErr string }{ // Wrong MD5 hash string, returns md5um of hash {[]CompletePart{{ETag: "wrong-md5-hash-string"}}, "0deb8cb07527b4b2669c861cb9653607-1", ""}, // Single CompletePart with valid MD5 hash string.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 24.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
// A 4n+1 length string is never legal base64(). assertFailsToDecode(base64(), "12345", "Invalid input length 5"); // These have a combination of invalid length, unrecognized characters and wrong padding. assertFailsToDecode(base64(), "AB=C", "Unrecognized character: ="); assertFailsToDecode(base64(), "A=BCD", "Invalid input length 5"); assertFailsToDecode(base64(), "?", "Invalid input length 1"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
// TODO: move this to invariant checks once the appropriate hook exists? super.expectContents(expected); for (Entry<K, V> entry : expected) { assertEquals( "Wrong value for key " + entry.getKey(), entry.getValue(), getMap().get(entry.getKey())); } } protected final void expectReplacement(Entry<K, V> newEntry) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 7.8K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
if v0.header.Signature != wantSig { t.Errorf("Wrong signature, want %#v, got %#v", wantSig, v0.header.Signature) } v, err := xl.getIdx(0) if err != nil { t.Fatal(err) } wantTimeStamp := "2022-10-27T07:40:53.195813291Z" got := string(v.DeleteMarker.MetaSys[ReservedMetadataPrefixLower+ReplicationTimestamp]) if wantTimeStamp != got { t.Errorf("Wrong timestamp, want %v, got %v", wantTimeStamp, got) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 37.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
assertThrows(GeneralSecurityException.class, () -> { storage2.decryptCredentials(encrypted); }, "Should throw GeneralSecurityException when decrypting with wrong salt"); } finally { storage2.close(); } // Clean up Arrays.fill(plaintext, '\0'); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
// Should validate string length String result = unicodeString.check(testString); assertEquals(testString, result); // Should reject wrong length assertThrows(PACDecodingException.class, () -> { unicodeString.check("WRONGLENGTH"); }); } @Test @DisplayName("Test empty arrays using mock")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
@Test void testGetSecurityWithWrongInfoType() throws Exception { // Test when info is not ShareInfo502 srvsvc.ShareInfo0 info0 = new srvsvc.ShareInfo0(); // Replace info field with wrong type Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info"); infoField.setAccessible(true); infoField.set(msrpcShareGetInfo, info0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
} @Test @DisplayName("Should throw exception for invalid nonce in constructor") void testConstructorWithInvalidNonce() { // Given byte[] invalidNonce = new byte[10]; // Wrong size // When/Then assertThrows(IllegalArgumentException.class, () -> { new Smb2TransformHeader(invalidNonce, 1024, 0x0001, testSessionId); }); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0)