- Sort Score
- Num 10 results
- Language All
Results 501 - 510 of 785 for EXPECTED (0.04 seconds)
-
android/guava-tests/test/com/google/common/collect/AbstractTableTest.java
protected @NonNull C cellValue(Character character) { return (C) character; } // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs) @SuppressWarnings("unchecked") protected C nullableCellValue(@Nullable Character character) { return (C) character; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java
assertNotNull(queryParseException); assertNull(queryParseException.getCause()); // getMessage() may return null when constructed with null // This is expected behavior for exceptions with null cause } @Test public void test_nestedCause() { // Test with nested exceptions RuntimeException rootCause = new RuntimeException("Root cause");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 5.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
try { ThreadDumpUtil.processThreadDump(null); fail("Should throw NullPointerException for null consumer"); } catch (NullPointerException e) { // Expected behavior } } @Test public void test_processThreadDump_multipleThreads() { AtomicInteger threadCount = new AtomicInteger(0);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
executor.execute(runnable); } }; future.setFuture(badFuture); ExecutionException expected = getExpectingExecutionException(future); assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class); assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString()); } public void testSetFuture_misbehavingFutureDoesNotThrow() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 45.2K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt
val peekedHeader = reader.peekHeader() if (peekedHeader == null || peekedHeader.tagClass != tagClass || peekedHeader.tag != tag) { if (isOptional) return defaultValue as T throw ProtocolException("expected $this but was $peekedHeader at $reader") } val result = reader.read(name) { codec.decode(reader) } if (typeHint) { reader.typeHint = result }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File file = createTempFile(); Files.write(bytes, file); // Test MappedByteBuffer actual = Files.map(file); // Verify ByteBuffer expected = ByteBuffer.wrap(bytes); assertTrue("ByteBuffers should be equal.", expected.equals(actual)); } public void testMap_noSuchFile() throws IOException { // Setup File file = createTempFile(); boolean deleted = file.delete();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateFixedIssuesInReleaseNotes.kt
} val version = milestone.get() val parts = version.split(".") require(parts.size == 3 && parts[2].toIntOrNull()?.let { it != 0 } == true) { "Version '$version' is not a patch release. Expected format: x.y.z with z > 0." } val issues = getFixedIssues() require(!issues.isEmpty()) { "No fixed issues found for milestone ${milestone.get()}" }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 23 14:49:33 GMT 2026 - 5.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
if (it.length < 2) { "0$it" } else { it } } internal fun commonHeadersOf(vararg inputNamesAndValues: String): Headers { require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" } // Make a defensive copy and clean it up. val namesAndValues: Array<String> = arrayOf(*inputNamesAndValues) for (i in namesAndValues.indices) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java
paramMap.put("url_exclude_pattern", ".*"); try { indexUpdateCallback.isUrlCrawlable(paramMap, null); fail("Expected NullPointerException for null URL"); } catch (NullPointerException e) { // Expected behavior - the method doesn't handle null URLs } } @Test public void test_isUrlCrawlable_nullUrlWithoutPattern() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 19.7K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
for (Class<?> mutableClass : mutableClasses) { Object instance = ArbitraryInstances.get(mutableClass); assertWithMessage("Expected to return non-null for: %s", mutableClass) .that(instance) .isNotNull(); assertWithMessage("Expected to return fresh instance for: " + mutableClass) .that(ArbitraryInstances.get(mutableClass)) .isNotSameInstanceAs(instance); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.8K bytes - Click Count (0)