- Sort Score
- Num 10 results
- Language All
Results 1031 - 1040 of 1,782 for scratch (0.46 seconds)
-
android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
} @Override public void remove() { iterator.remove(); } } public void testPeekingIteratorDoesntAdvancePrematurely() throws Exception { /* * This test will catch problems where the underlying iterator * throws a RuntimeException when retrieving the nth element. * * If the PeekingIterator is caching elements too aggressively,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 8.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
for (long value : TEST_LONGS) { boolean expectSuccess = value >= 0; try { assertThat(UnsignedLong.valueOf(value).longValue()).isEqualTo(value); assertThat(expectSuccess).isTrue(); } catch (IllegalArgumentException e) { assertThat(expectSuccess).isFalse(); } } } public void testValueOfBigInteger() { BigInteger min = BigInteger.ZERO;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 10.4K bytes - Click Count (0) -
docs/recipes.md
call.execute().use { response -> System.out.printf("%.2f Call was expected to fail, but completed: %s%n", (System.nanoTime() - startNanos) / 1e9f, response) } } catch (e: IOException) { System.out.printf("%.2f Call failed as expected: %s%n", (System.nanoTime() - startNanos) / 1e9f, e) } } ``` === ":material-language-java: Java"
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 47.8K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt
override fun close() { val errors = mutableListOf<Exception>() openKotlinCompilationUnitsByRoot.values.forEach { unit -> try { unit.close() } catch (ex: Exception) { errors.add(ex) } } openJavaCompilationUnitsByFile.clear() openKotlinCompilationUnitsByRoot.clear() if (errors.isNotEmpty()) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Apr 28 14:56:52 GMT 2025 - 4.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java
expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(ZERO) public void testClear_unsupportedByEmptyCollection() { try { getMap().clear(); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java
for (final String dialect : this.dialects) { bos.write(0x02); try { bos.write(Strings.getASCIIBytes(dialect)); } catch (final IOException e) { throw new RuntimeCIFSException(e); } bos.write(0x0); } System.arraycopy(bos.toByteArray(), 0, dst, dstIndex, bos.size());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.5K bytes - Click Count (3) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CleanArgument.java
import java.util.List; /** * CleanArgument */ public class CleanArgument { public static String[] cleanArgs(String[] args) { try { return doCleanArgs(args); } catch (RuntimeException e) { for (String a : args) { System.out.println("Arg: '" + a + "'"); } throw e; } }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 28 12:11:25 GMT 2025 - 3.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java
roleService.store(entity); saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); logger.info("Created role: {}", entity.getName()); } catch (final Exception e) { logger.warn("Failed to create role: {}", form.name, e); throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)),
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
// Test throwing and catching the exception String expectedMessage = "SSO configuration error"; try { throw new SsoProcessException(expectedMessage); } catch (SsoProcessException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } } @Test public void test_throwAndCatchWithCause() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/ResourceUtilTest.java
try { Path path = ResourceUtil.getConfOrClassesPath("nonexistent.conf"); fail("Should throw ResourceNotFoundRuntimeException for non-existent file"); } catch (org.codelibs.core.exception.ResourceNotFoundRuntimeException e) { // Expected behavior - method throws exception for non-existent files assertTrue(e.getMessage().contains("nonexistent.conf")); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 11.8K bytes - Click Count (0)