- Sort Score
- Num 10 results
- Language All
Results 611 - 620 of 1,522 for EXPECTED (0.36 seconds)
-
src/test/java/jcifs/smb/SecurityBlobTest.java
void toString_rendersHex(byte[] input, String expected) { // Arrange SecurityBlob blob = new SecurityBlob(input); // Act String actual = blob.toString(); // Assert assertEquals(expected, actual, "Hex string should match expected format"); } // Ensures a default-constructed blob starts empty and stable across APIs
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
val call1 = client.newCall(Request(server.url("/"))) assertFailsWith<IOException> { call1.execute() }.also { expected -> when (expected) { is SocketTimeoutException, is SSLException -> {} else -> { throw expected } } } // The second call times out because it uses the same bad connection.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 67.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacMacTest.java
} /** * Helper method to verify n-fold expansion. */ private void verifyNfold(String input, int outlen, byte[] expected) { byte[] result = PacMac.expandNFold(input.getBytes(), outlen); assertArrayEquals(expected, result, String.format("n-fold expansion failed for input '%s'", input)); } /** * Test method forCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java
* @param oldValue the expected data currently associated with the key, may be {@code null} * @param newValue the data to associate with the key, may be {@code null} to remove the mapping * @return {@code true} if the key mapping was successfully updated from the old value to the new value, * {@code false} if the current key mapping didn't match the expected value and was not updated. */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Feb 28 23:31:09 GMT 2024 - 4.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
+ " was thrown; expected " + getMessage(); throw new AssertionError(message, exception); } } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } private static final class UnknownElementException extends RuntimeException { private UnknownElementException(Collection<?> expected, Object actual) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 21.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
List<E> iteratorElements = new ArrayList<>(); for (E element : collection) { // uses iterator() iteratorElements.add(element); } List<E> expected = copyToList(getOrderedElements()); assertEquals("Different ordered iteration", expected, iteratorElements); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testIterator_nullElement() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosErrorTest.java
} @ParameterizedTest @MethodSource("knownMappings") @DisplayName("Happy path: known DOS codes map to expected NTSTATUS") void mapsKnownDosCodesToNtStatus(int dosCode, int expectedNtStatus) { // Act int actual = findNtStatusOrMinusOne(dosCode); // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
cmd/format-erasure.go
return "", err } if meta.Version != formatMetaVersionV1 { return "", fmt.Errorf(`format.Version expected: %s, got: %s`, formatMetaVersionV1, meta.Version) } if meta.Format != formatBackendErasure && meta.Format != formatBackendErasureSingle {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 23.1K bytes - Click Count (0) -
cmd/api-errors.go
}, ErrParseExpectedDatePart: { Code: "ParseExpectedDatePart", Description: "Did not find the expected date part in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, }, ErrParseExpectedKeyword: { Code: "ParseExpectedKeyword", Description: "Did not find the expected keyword in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, }, ErrParseExpectedTokenType: {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 16 07:34:24 GMT 2025 - 93K bytes - Click Count (3) -
android/guava/src/com/google/common/collect/HashBasedTable.java
} /** * Creates an empty {@code HashBasedTable} with the specified map sizes. * * @param expectedRows the expected number of distinct row keys * @param expectedCellsPerRow the expected number of column key / value mappings in each row * @throws IllegalArgumentException if {@code expectedRows} or {@code expectedCellsPerRow} is * negative */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 4.1K bytes - Click Count (0)